Skip to content

Commit 90c4af1

Browse files
lcnrBoxyUwU
andauthored
Update compiler/rustc_trait_selection/src/solve/fulfill.rs
Co-authored-by: Boxy <[email protected]>
1 parent 64c1617 commit 90c4af1

File tree

1 file changed

+4
-4
lines changed
  • compiler/rustc_trait_selection/src/solve

1 file changed

+4
-4
lines changed

compiler/rustc_trait_selection/src/solve/fulfill.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)