diff options
| author | Laurențiu Nicola <lnicola@dend.ro> | 2024-07-28 17:19:33 +0300 |
|---|---|---|
| committer | Laurențiu Nicola <lnicola@dend.ro> | 2024-07-28 17:19:33 +0300 |
| commit | a973d3f0879c486a8485b99244f1060f69a31a33 (patch) | |
| tree | fee681aba06a57873e1736b19e78d97a21443dc5 /compiler/rustc_pattern_analysis/src/constructor.rs | |
| parent | c16061a237e85a5b2581eae5f8f875096ead3624 (diff) | |
| parent | 1b51d80027919563004918eaadfa0d890ac0eb93 (diff) | |
| download | rust-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.rs | 2 |
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, "[")?; |
