about summary refs log tree commit diff
path: root/compiler/rustc_expand/src/base.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-06-06 23:53:16 +0200
committerGitHub <noreply@github.com>2025-06-06 23:53:16 +0200
commit93ca0af08ca056e9e38d172e9b224d1e607a8e99 (patch)
tree2a42a877715e20a48d65748511b18d23e6b3e8c8 /compiler/rustc_expand/src/base.rs
parent15d9b9619c0db448552b092c5259ea6c18cd32fc (diff)
parent991c91fdaa5862835799abfd9c2349e06277097e (diff)
downloadrust-93ca0af08ca056e9e38d172e9b224d1e607a8e99.tar.gz
rust-93ca0af08ca056e9e38d172e9b224d1e607a8e99.zip
Rollup merge of #141603 - nnethercote:reduce-P, r=fee1-dead
Reduce `ast::ptr::P` to a typedef of `Box`

As per the MCP at https://github.com/rust-lang/compiler-team/issues/878.

r? `@fee1-dead`
Diffstat (limited to 'compiler/rustc_expand/src/base.rs')
-rw-r--r--compiler/rustc_expand/src/base.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_expand/src/base.rs b/compiler/rustc_expand/src/base.rs
index 2accfba383e..c7b975d8f3e 100644
--- a/compiler/rustc_expand/src/base.rs
+++ b/compiler/rustc_expand/src/base.rs
@@ -167,7 +167,7 @@ impl Annotatable {
 
     pub fn expect_stmt(self) -> ast::Stmt {
         match self {
-            Annotatable::Stmt(stmt) => stmt.into_inner(),
+            Annotatable::Stmt(stmt) => *stmt,
             _ => panic!("expected statement"),
         }
     }