diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-06-01 06:50:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-01 06:50:07 +0200 |
| commit | 760a98fb5e1c964efbe5cb36710fff892b547c51 (patch) | |
| tree | ab17796330bf1e86e5e074e9eab642f778af20f5 /src/libsyntax | |
| parent | 93fc627c7d4d15bd45a0a900260897fd9a0bb958 (diff) | |
| parent | 6d387463aa074982c8c6427a708cd9a18a6f58dc (diff) | |
| download | rust-760a98fb5e1c964efbe5cb36710fff892b547c51.tar.gz rust-760a98fb5e1c964efbe5cb36710fff892b547c51.zip | |
Rollup merge of #61389 - Zoxc:arena-cleanup, r=eddyb
Remove GlobalArenas and use Arena instead r? @eddyb
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/attr/builtin.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/attr/builtin.rs b/src/libsyntax/attr/builtin.rs index b96f13335b2..bf6eab4ec91 100644 --- a/src/libsyntax/attr/builtin.rs +++ b/src/libsyntax/attr/builtin.rs @@ -111,7 +111,7 @@ pub fn find_unwind_attr(diagnostic: Option<&Handler>, attrs: &[Attribute]) -> Op } /// Represents the #[stable], #[unstable], #[rustc_{deprecated,const_unstable}] attributes. -#[derive(RustcEncodable, RustcDecodable, Clone, Debug, PartialEq, Eq, Hash)] +#[derive(RustcEncodable, RustcDecodable, Copy, Clone, Debug, PartialEq, Eq, Hash)] pub struct Stability { pub level: StabilityLevel, pub feature: Symbol, @@ -127,7 +127,7 @@ pub struct Stability { } /// The available stability levels. -#[derive(RustcEncodable, RustcDecodable, PartialEq, PartialOrd, Clone, Debug, Eq, Hash)] +#[derive(RustcEncodable, RustcDecodable, PartialEq, PartialOrd, Copy, Clone, Debug, Eq, Hash)] pub enum StabilityLevel { // Reason for the current stability level and the relevant rust-lang issue Unstable { reason: Option<Symbol>, issue: u32 }, @@ -151,7 +151,7 @@ impl StabilityLevel { } } -#[derive(RustcEncodable, RustcDecodable, PartialEq, PartialOrd, Clone, Debug, Eq, Hash)] +#[derive(RustcEncodable, RustcDecodable, PartialEq, PartialOrd, Copy, Clone, Debug, Eq, Hash)] pub struct RustcDeprecation { pub since: Symbol, pub reason: Symbol, |
