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/path.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/path.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/path.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/path.rs b/compiler/rustc_parse/src/parser/path.rs index feb7e829caf..445516c03a1 100644 --- a/compiler/rustc_parse/src/parser/path.rs +++ b/compiler/rustc_parse/src/parser/path.rs @@ -679,7 +679,7 @@ impl<'a> Parser<'a> { ); err.span_suggestion( eq.to(before_next), - format!("remove the `=` if `{}` is a type", ident), + format!("remove the `=` if `{ident}` is a type"), "", Applicability::MaybeIncorrect, ) |
