about summary refs log tree commit diff
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
commit507183d438e615dcc24eb488a6622b5591801058 (patch)
treee48878b9f90369f8d48f5164cdca742906de6bc5
parent2c951058d4a68861a8bd4ba1ad280bcf46595dc8 (diff)
parente177dd0b439ec460112cc4693694cbd5d275ce0e (diff)
downloadrust-507183d438e615dcc24eb488a6622b5591801058.tar.gz
rust-507183d438e615dcc24eb488a6622b5591801058.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`
-rw-r--r--clippy_lints/src/unnested_or_patterns.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/unnested_or_patterns.rs b/clippy_lints/src/unnested_or_patterns.rs
index 9ad184450de..b839b6f5672 100644
--- a/clippy_lints/src/unnested_or_patterns.rs
+++ b/clippy_lints/src/unnested_or_patterns.rs
@@ -426,7 +426,7 @@ fn drain_matching(
         // Check if we should extract, but only if `idx >= start`.
         if idx > start && predicate(&alternatives[i].kind) {
             let pat = alternatives.remove(i);
-            tail_or.push(extract(pat.into_inner().kind));
+            tail_or.push(extract(pat.kind));
         } else {
             i += 1;
         }