We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d52c615 commit 66a3afbCopy full SHA for 66a3afb
compiler/rustc_next_trait_solver/src/solve/trait_goals.rs
@@ -1197,6 +1197,7 @@ where
1197
// We prefer trivial builtin candidates, i.e. builtin impls without any
1198
// nested requirements, over all others. This is a fix for #53123 and
1199
// prevents where-bounds from accidentally extending the lifetime of a
1200
+ // variable.
1201
let mut trivial_builtin_impls = candidates.iter().filter(|c| {
1202
matches!(c.source, CandidateSource::BuiltinImpl(BuiltinImplSource::Trivial))
1203
});
0 commit comments