diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-07-08 03:09:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-08 03:09:57 +0200 |
| commit | b29f039ae380cd4b5420d28eb94d0ba5f027a6f6 (patch) | |
| tree | 4014b3c478a5ae0a8179d1cdb8ebf8fb4d24fb52 /compiler/rustc_middle/src | |
| parent | a4e05e1f74fe258533ede9c41e43ff8c386615f8 (diff) | |
| parent | 3ddcf8b94cb22a3c8acd73b96fe938c1515a4a7b (diff) | |
| download | rust-b29f039ae380cd4b5420d28eb94d0ba5f027a6f6.tar.gz rust-b29f039ae380cd4b5420d28eb94d0ba5f027a6f6.zip | |
Rollup merge of #143571 - lcnr:has_nested-bb, r=compiler-errors
remove `has_nested` from builtin candidates it's no longer necessary r? types
Diffstat (limited to 'compiler/rustc_middle/src')
| -rw-r--r-- | compiler/rustc_middle/src/traits/select.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/compiler/rustc_middle/src/traits/select.rs b/compiler/rustc_middle/src/traits/select.rs index aa2ee756bc5..c498e6b3c83 100644 --- a/compiler/rustc_middle/src/traits/select.rs +++ b/compiler/rustc_middle/src/traits/select.rs @@ -97,9 +97,7 @@ pub type EvaluationCache<'tcx, ENV> = Cache<(ENV, ty::PolyTraitPredicate<'tcx>), pub enum SelectionCandidate<'tcx> { /// A built-in implementation for the `Sized` trait. This is preferred /// over all other candidates. - SizedCandidate { - has_nested: bool, - }, + SizedCandidate, /// A builtin implementation for some specific traits, used in cases /// where we cannot rely an ordinary library implementations. @@ -107,10 +105,7 @@ pub enum SelectionCandidate<'tcx> { /// The most notable examples are `Copy` and `Clone`. This is also /// used for the `DiscriminantKind` and `Pointee` trait, both of which have /// an associated type. - BuiltinCandidate { - /// `false` if there are no *further* obligations. - has_nested: bool, - }, + BuiltinCandidate, /// Implementation of transmutability trait. TransmutabilityCandidate, |
