Skip to content

Commit 4be38d2

Browse files
committed
Derive Copy for VarianceDiagInfo
1 parent a5b7511 commit 4be38d2

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+2
-2
lines changed

compiler/rustc_middle/src/ty/sty.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2189,7 +2189,7 @@ impl<'tcx> TyS<'tcx> {
21892189
/// a miscompilation or unsoundness.
21902190
///
21912191
/// When in doubt, use `VarianceDiagInfo::default()`
2192-
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
2192+
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
21932193
pub enum VarianceDiagInfo<'tcx> {
21942194
/// No additional information - this is the default.
21952195
/// We will not add any additional information to error messages.
@@ -2208,7 +2208,7 @@ pub enum VarianceDiagInfo<'tcx> {
22082208
},
22092209
}
22102210

2211-
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
2211+
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
22122212
pub enum VarianceDiagMutKind {
22132213
/// A mutable raw pointer (`*mut T`)
22142214
RawPtr,

0 commit comments

Comments
 (0)