diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2021-06-27 09:28:37 -0500 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2021-06-27 09:30:13 -0500 |
| commit | 4be38d26589c46de18f9afaf2b565b3cce36d132 (patch) | |
| tree | 832ddbb2b6c6c612c7203ef13e4e2d46ded7c1e5 /compiler/rustc_middle/src | |
| parent | a5b7511a6ccf241ba2ce6ad0b04e79f1e3d85686 (diff) | |
| download | rust-4be38d26589c46de18f9afaf2b565b3cce36d132.tar.gz rust-4be38d26589c46de18f9afaf2b565b3cce36d132.zip | |
Derive `Copy` for `VarianceDiagInfo`
Diffstat (limited to 'compiler/rustc_middle/src')
| -rw-r--r-- | compiler/rustc_middle/src/ty/sty.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/ty/sty.rs b/compiler/rustc_middle/src/ty/sty.rs index 5dc5080712e..2959ea24d24 100644 --- a/compiler/rustc_middle/src/ty/sty.rs +++ b/compiler/rustc_middle/src/ty/sty.rs @@ -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, |
