Prefer built-in sized impls for rigid types always
This commit is contained in:
parent
52daa7d835
commit
f9696dda6e
4 changed files with 41 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue