Skip to content

Commit 47b2f15

Browse files
committed
Auto merge of rust-lang#86670 - Aaron1011:copy-variance-diag, r=davidtwco
Derive `Copy` for `VarianceDiagInfo`
2 parents fecc65a + 4be38d2 commit 47b2f15

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)