diff options
| author | bors <bors@rust-lang.org> | 2023-07-30 13:59:25 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-07-30 13:59:25 +0000 |
| commit | 89acdae9f243da15549c7a8bc737e6240c301790 (patch) | |
| tree | 668c7f1216e2dc30a00c2d94e2eb47f11a3f218b /compiler/rustc_parse/src/parser/expr.rs | |
| parent | 483ef5f4d8de1a8ef0d9a2771b7a4a45f9846721 (diff) | |
| parent | b9f17f1e78cc9d004da6c5488f20e08a5741accf (diff) | |
| download | rust-89acdae9f243da15549c7a8bc737e6240c301790.tar.gz rust-89acdae9f243da15549c7a8bc737e6240c301790.zip | |
Auto merge of #114250 - matthiaskrgr:rollup-0r0dhrr, r=matthiaskrgr
Rollup of 6 pull requests Successful merges: - #110056 (Fix the example in document for WaitTimeoutResult::timed_out) - #112655 (Mark `map_or` as `#[must_use]`) - #114018 (Make `--error-format human-annotate-rs` handle multiple files) - #114068 (inline format!() args up to and including rustc_middle (2)) - #114223 (Documentation: Fix Stilted Language in Vec->Indexing) - #114227 (Add tidy check for stray rustfix files) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_parse/src/parser/expr.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/expr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs index b54cb8c5a0c..8c9aac6059d 100644 --- a/compiler/rustc_parse/src/parser/expr.rs +++ b/compiler/rustc_parse/src/parser/expr.rs @@ -1052,7 +1052,7 @@ impl<'a> Parser<'a> { } components.push(Punct(c)); } else { - panic!("unexpected character in a float token: {:?}", c) + panic!("unexpected character in a float token: {c:?}") } } if !ident_like.is_empty() { @@ -1113,7 +1113,7 @@ impl<'a> Parser<'a> { self.error_unexpected_after_dot(); DestructuredFloat::Error } - _ => panic!("unexpected components in a float token: {:?}", components), + _ => panic!("unexpected components in a float token: {components:?}"), } } |
