Derive Copy
for VarianceDiagInfo
This commit is contained in:
parent
a5b7511a6c
commit
4be38d2658
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue