diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-06-06 23:53:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-06 23:53:16 +0200 |
| commit | 93ca0af08ca056e9e38d172e9b224d1e607a8e99 (patch) | |
| tree | 2a42a877715e20a48d65748511b18d23e6b3e8c8 /compiler/rustc_expand/src/base.rs | |
| parent | 15d9b9619c0db448552b092c5259ea6c18cd32fc (diff) | |
| parent | 991c91fdaa5862835799abfd9c2349e06277097e (diff) | |
| download | rust-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.rs | 2 |
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"), } } |
