diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-05-27 02:32:22 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-05-27 13:29:24 +1000 |
| commit | 991c91fdaa5862835799abfd9c2349e06277097e (patch) | |
| tree | b9f20eadb3f2ccd0ec50e3800ed983824a6a9ce1 /compiler/rustc_expand/src/base.rs | |
| parent | c42d1fc2c6ea5a35d8d74f909a1f69dee5d9ce56 (diff) | |
| download | rust-991c91fdaa5862835799abfd9c2349e06277097e.tar.gz rust-991c91fdaa5862835799abfd9c2349e06277097e.zip | |
Reduce `P<T>` to a typedef of `Box<T>`.
Keep the `P` constructor function for now, to minimize immediate churn. All the `into_inner` calls are removed, which is nice.
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 55751aa4908..058e45cdc4c 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"), } } |
