File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
compiler/rustc_borrowck/src/region_infer Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -909,19 +909,18 @@ impl<'tcx> RegionInferenceContext<'tcx> {
909
909
// scc_a's declared universe (typically, both are ROOT), then
910
910
// it cannot contain any problematic universe elements.
911
911
if universe_a. can_name ( self . scc_universes [ scc_b] ) {
912
+ debug ! ( "{universe_a:?} of {scc_a:?} can name declared universe {declared_universe:?} of {scc_b:?}" ,
913
+ declared_universe = self . scc_universes[ scc_b] ) ;
912
914
return true ;
913
915
}
914
916
915
917
// Otherwise, we have to iterate over the universe elements in
916
918
// B's value, and check whether all of them are nameable
917
919
// from universe_a
918
920
self . scc_values . placeholders_contained_in ( scc_b) . all ( |p| {
919
- if universe_a. can_name ( p. universe ) {
920
- true
921
- } else {
922
- debug ! ( "{universe_a:?} cannot name {:?} through {p:?}" , p. universe) ;
923
- false
924
- }
921
+ let universe_ok = universe_a. can_name ( p. universe ) ;
922
+ debug ! ( "{universe_a:?} can name {:?} through {p:?}? {universe_ok:?}" , p. universe) ;
923
+ universe_ok
925
924
} )
926
925
}
927
926
You can’t perform that action at this time.
0 commit comments