diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-01-15 12:42:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-15 12:42:08 +0100 |
| commit | e8cfae4140ca237b277b3e5afac61f6504c54191 (patch) | |
| tree | cfe6a534d8dad10a6c8643df82e193d311df3409 /src/libsyntax | |
| parent | 77727feb180493bfce998d4fcba9dfd7ca5f0637 (diff) | |
| parent | bd1551e46e4a788dc974f4aac8ba821133625663 (diff) | |
| download | rust-e8cfae4140ca237b277b3e5afac61f6504c54191.tar.gz rust-e8cfae4140ca237b277b3e5afac61f6504c54191.zip | |
Rollup merge of #57467 - JohnTitor:implement-the-check-attribute-1, r=oli-obk
Implement `check_attribute` to forbid `#[allow_internal_unsafe]` Fixes #56768. r? @oli-obk
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index e3a8980a975..99ab9fbcf5f 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -853,13 +853,13 @@ pub struct Field { pub type SpannedIdent = Spanned<Ident>; -#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Copy)] +#[derive(Clone, PartialEq, RustcEncodable, RustcDecodable, Debug, Copy)] pub enum BlockCheckMode { Default, Unsafe(UnsafeSource), } -#[derive(Clone, RustcEncodable, RustcDecodable, Debug, Copy)] +#[derive(Clone, PartialEq, RustcEncodable, RustcDecodable, Debug, Copy)] pub enum UnsafeSource { CompilerGenerated, UserProvided, |
