diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2021-02-25 14:34:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-25 14:34:03 +0100 |
| commit | 20928e0cbf65a65a5e96d56d2f665e62f593fdf8 (patch) | |
| tree | 19c061ba1f371275838d21f6243ee3c295a61285 /compiler/rustc_ast | |
| parent | 05ed0814b93345d635abff47339d9f04c0087bc5 (diff) | |
| parent | 10f234240dd9e790cc222570d99d7a320fa88d8e (diff) | |
| download | rust-20928e0cbf65a65a5e96d56d2f665e62f593fdf8.tar.gz rust-20928e0cbf65a65a5e96d56d2f665e62f593fdf8.zip | |
Rollup merge of #82321 - bugadani:ast3, r=varkor
AST: Remove some unnecessary boxes
Diffstat (limited to 'compiler/rustc_ast')
| -rw-r--r-- | compiler/rustc_ast/src/ast.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_ast/src/ast.rs b/compiler/rustc_ast/src/ast.rs index 1d2f1f694cf..16b4378e7f7 100644 --- a/compiler/rustc_ast/src/ast.rs +++ b/compiler/rustc_ast/src/ast.rs @@ -2695,7 +2695,7 @@ pub enum ItemKind { /// A use declaration item (`use`). /// /// E.g., `use foo;`, `use foo::bar;` or `use foo::bar as FooBar;`. - Use(P<UseTree>), + Use(UseTree), /// A static item (`static`). /// /// E.g., `static FOO: i32 = 42;` or `static FOO: &'static str = "bar";`. @@ -2719,7 +2719,7 @@ pub enum ItemKind { /// E.g., `extern {}` or `extern "C" {}`. ForeignMod(ForeignMod), /// Module-level inline assembly (from `global_asm!()`). - GlobalAsm(P<GlobalAsm>), + GlobalAsm(GlobalAsm), /// A type alias (`type`). /// /// E.g., `type Foo = Bar<u8>;`. |
