diff options
| author | Valdemar Erk <valdemar@erk.dev> | 2025-08-23 11:37:53 +0200 |
|---|---|---|
| committer | Valdemar Erk <valdemar@erk.dev> | 2025-08-25 09:55:50 +0200 |
| commit | 75d8687f2b6ac1e73071450cb57c4157fcba53b4 (patch) | |
| tree | d9c2aa30e6cb91a029360e071dde0b580a8899c1 /compiler/rustc_hir_pretty | |
| parent | 8df154bffddcb6bbb543ad69aff971795c5adbc2 (diff) | |
| download | rust-75d8687f2b6ac1e73071450cb57c4157fcba53b4.tar.gz rust-75d8687f2b6ac1e73071450cb57c4157fcba53b4.zip | |
add span to struct pattern rest (..)
Diffstat (limited to 'compiler/rustc_hir_pretty')
| -rw-r--r-- | compiler/rustc_hir_pretty/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_hir_pretty/src/lib.rs b/compiler/rustc_hir_pretty/src/lib.rs index be5859b57c5..52b29e05dcb 100644 --- a/compiler/rustc_hir_pretty/src/lib.rs +++ b/compiler/rustc_hir_pretty/src/lib.rs @@ -1958,12 +1958,12 @@ impl<'a> State<'a> { self.print_qpath(qpath, true); self.nbsp(); self.word("{"); - let empty = fields.is_empty() && !etc; + let empty = fields.is_empty() && etc.is_none(); if !empty { self.space(); } self.commasep_cmnt(Consistent, fields, |s, f| s.print_patfield(f), |f| f.pat.span); - if etc { + if etc.is_some() { if !fields.is_empty() { self.word_space(","); } |
