File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -328,9 +328,10 @@ impl<C: Context> Forest<C> {
328
328
infer : & mut dyn InferenceTable < C > ,
329
329
subgoal : & C :: GoalInEnvironment ,
330
330
) -> Option < ( C :: UCanonicalGoalInEnvironment , C :: UniverseMap ) > {
331
- match infer. goal_needs_truncation ( context. interner ( ) , subgoal) {
332
- true => None ,
333
- false => Some ( infer. fully_canonicalize_goal ( context. interner ( ) , subgoal) ) ,
331
+ if infer. goal_needs_truncation ( context. interner ( ) , subgoal) {
332
+ None
333
+ } else {
334
+ Some ( infer. fully_canonicalize_goal ( context. interner ( ) , subgoal) )
334
335
}
335
336
}
336
337
@@ -385,9 +386,10 @@ impl<C: Context> Forest<C> {
385
386
// affect completeness when it comes to subgoal abstraction.
386
387
let inverted_subgoal = infer. invert_goal ( context. interner ( ) , subgoal) ?;
387
388
388
- match infer. goal_needs_truncation ( context. interner ( ) , & inverted_subgoal) {
389
- true => None ,
390
- false => Some ( infer. fully_canonicalize_goal ( context. interner ( ) , & inverted_subgoal) ) ,
389
+ if infer. goal_needs_truncation ( context. interner ( ) , & inverted_subgoal) {
390
+ None
391
+ } else {
392
+ Some ( infer. fully_canonicalize_goal ( context. interner ( ) , & inverted_subgoal) )
391
393
}
392
394
}
393
395
}
Original file line number Diff line number Diff line change @@ -79,12 +79,6 @@ impl<I: Interner> InferenceTable<I> {
79
79
u
80
80
}
81
81
82
- /// Current maximum universe -- one that can see all existing names.
83
- #[ allow( dead_code) ]
84
- pub ( crate ) fn max_universe ( & self ) -> UniverseIndex {
85
- self . max_universe
86
- }
87
-
88
82
/// Creates a new inference variable and returns its index. The
89
83
/// kind of the variable should be known by the caller, but is not
90
84
/// tracked directly by the inference table.
You can’t perform that action at this time.
0 commit comments