about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/constructor.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-07-28 14:22:27 +0000
committerbors <bors@rust-lang.org>2024-07-28 14:22:27 +0000
commit48fb66be7a657839bdf8f42ae06fc17893c2d162 (patch)
treefee681aba06a57873e1736b19e78d97a21443dc5 /compiler/rustc_pattern_analysis/src/constructor.rs
parent159524019f6c4ab8908dc297aeea4e5c4d1f2c89 (diff)
parenta973d3f0879c486a8485b99244f1060f69a31a33 (diff)
downloadrust-48fb66be7a657839bdf8f42ae06fc17893c2d162.tar.gz
rust-48fb66be7a657839bdf8f42ae06fc17893c2d162.zip
Auto merge of #17732 - lnicola:sync-from-rust, r=lnicola
minor: sync from downstream
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/constructor.rs')
-rw-r--r--compiler/rustc_pattern_analysis/src/constructor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_pattern_analysis/src/constructor.rs b/compiler/rustc_pattern_analysis/src/constructor.rs
index fb103705475..f3e8e547066 100644
--- a/compiler/rustc_pattern_analysis/src/constructor.rs
+++ b/compiler/rustc_pattern_analysis/src/constructor.rs
@@ -904,7 +904,7 @@ impl<Cx: PatCx> Constructor<Cx> {
             // be careful to detect strings here. However a string literal pattern will never
             // be reported as a non-exhaustiveness witness, so we can ignore this issue.
             Ref => {
-                write!(f, "&{:?}", &fields.next().unwrap())?;
+                write!(f, "&{:?}", fields.next().unwrap())?;
             }
             Slice(slice) => {
                 write!(f, "[")?;