Derive Copy for VarianceDiagInfo
This commit is contained in:
@@ -2189,7 +2189,7 @@ impl<'tcx> TyS<'tcx> {
|
|||||||
/// a miscompilation or unsoundness.
|
/// a miscompilation or unsoundness.
|
||||||
///
|
///
|
||||||
/// When in doubt, use `VarianceDiagInfo::default()`
|
/// When in doubt, use `VarianceDiagInfo::default()`
|
||||||
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
|
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
|
||||||
pub enum VarianceDiagInfo<'tcx> {
|
pub enum VarianceDiagInfo<'tcx> {
|
||||||
/// No additional information - this is the default.
|
/// No additional information - this is the default.
|
||||||
/// We will not add any additional information to error messages.
|
/// We will not add any additional information to error messages.
|
||||||
@@ -2208,7 +2208,7 @@ pub enum VarianceDiagInfo<'tcx> {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
|
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
|
||||||
pub enum VarianceDiagMutKind {
|
pub enum VarianceDiagMutKind {
|
||||||
/// A mutable raw pointer (`*mut T`)
|
/// A mutable raw pointer (`*mut T`)
|
||||||
RawPtr,
|
RawPtr,
|
||||||
|
|||||||
Reference in New Issue
Block a user