Skip to content

Commit 66a3afb

Browse files
authored
add where-clause
1 parent d52c615 commit 66a3afb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_next_trait_solver/src/solve/trait_goals.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,6 +1197,7 @@ where
11971197
// We prefer trivial builtin candidates, i.e. builtin impls without any
11981198
// nested requirements, over all others. This is a fix for #53123 and
11991199
// prevents where-bounds from accidentally extending the lifetime of a
1200+
// variable.
12001201
let mut trivial_builtin_impls = candidates.iter().filter(|c| {
12011202
matches!(c.source, CandidateSource::BuiltinImpl(BuiltinImplSource::Trivial))
12021203
});

0 commit comments

Comments
 (0)