File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
compiler/rustc_trait_selection/src/solve Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -197,12 +197,12 @@ where
197197 delegate. compute_goal_fast_path ( goal, obligation. cause . span )
198198 {
199199 match certainty {
200- // Even if the goal references two instances of the same infer var,
201- // our fast paths should not depend on region identity.
200+ // This fast path doesn't depend on region identity so it doesn't
201+ // matter if the goal contains inference variables or not, so we
202+ // don't need to call `push_hir_typeck_potentially_region_dependent_goal`
203+ // here.
202204 //
203205 // Only goals proven via the trait solver should be region dependent.
204- // We never call `push_hir_typeck_potentially_region_dependent_goal`
205- // here.
206206 Certainty :: Yes => { }
207207 Certainty :: Maybe ( _) => {
208208 self . obligations . register ( obligation, None ) ;
You can’t perform that action at this time.
0 commit comments