about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/constructor.rs
diff options
context:
space:
mode:
authorLaurențiu Nicola <lnicola@dend.ro>2024-07-28 17:19:33 +0300
committerLaurențiu Nicola <lnicola@dend.ro>2024-07-28 17:19:33 +0300
commita973d3f0879c486a8485b99244f1060f69a31a33 (patch)
treefee681aba06a57873e1736b19e78d97a21443dc5 /compiler/rustc_pattern_analysis/src/constructor.rs
parentc16061a237e85a5b2581eae5f8f875096ead3624 (diff)
parent1b51d80027919563004918eaadfa0d890ac0eb93 (diff)
downloadrust-a973d3f0879c486a8485b99244f1060f69a31a33.tar.gz
rust-a973d3f0879c486a8485b99244f1060f69a31a33.zip
Merge from rust-lang/rust
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, "[")?;