diff options
| author | Michael Goulet <michael@errs.io> | 2025-03-07 17:52:17 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-03-13 21:12:07 +0000 |
| commit | f9696dda6e9d88a88c057e93fbc854104996bc33 (patch) | |
| tree | 5a049e4699760eb66ed41c608706e85c1fb2514a /compiler/rustc_middle/src | |
| parent | 52daa7d835e7ff51cb387340082bf9a59b949738 (diff) | |
| download | rust-f9696dda6e9d88a88c057e93fbc854104996bc33.tar.gz rust-f9696dda6e9d88a88c057e93fbc854104996bc33.zip | |
Prefer built-in sized impls for rigid types always
Diffstat (limited to 'compiler/rustc_middle/src')
| -rw-r--r-- | compiler/rustc_middle/src/traits/select.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/traits/select.rs b/compiler/rustc_middle/src/traits/select.rs index 811bd8fb458..749f3c31bf8 100644 --- a/compiler/rustc_middle/src/traits/select.rs +++ b/compiler/rustc_middle/src/traits/select.rs @@ -95,10 +95,13 @@ pub type EvaluationCache<'tcx, ENV> = Cache<(ENV, ty::PolyTraitPredicate<'tcx>), /// parameter environment. #[derive(PartialEq, Eq, Debug, Clone, TypeVisitable)] pub enum SelectionCandidate<'tcx> { + /// UwU + SizedCandidate, + /// A builtin implementation for some specific traits, used in cases /// where we cannot rely an ordinary library implementations. /// - /// The most notable examples are `sized`, `Copy` and `Clone`. This is also + /// 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 { |
