Derive Copy
for VarianceDiagInfo
This commit is contained in:
parent
a5b7511a6c
commit
4be38d2658
@ -2189,7 +2189,7 @@ impl<'tcx> TyS<'tcx> {
|
||||
/// a miscompilation or unsoundness.
|
||||
///
|
||||
/// 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> {
|
||||
/// No additional information - this is the default.
|
||||
/// 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 {
|
||||
/// A mutable raw pointer (`*mut T`)
|
||||
RawPtr,
|
||||
|
Loading…
x
Reference in New Issue
Block a user