Rollup merge of #82321 - bugadani:ast3, r=varkor
AST: Remove some unnecessary boxes
This commit is contained in:
commit
20928e0cbf
4 changed files with 6 additions and 7 deletions
|
@ -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>;`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue