diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-05-03 20:33:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-03 20:33:45 +0200 |
| commit | bd305e10c2b4b16048f152ee63ff546cd764d358 (patch) | |
| tree | 1bbec9d23d26fa0b8d238ad7f1ae86dfca5ea4b8 /compiler/rustc_resolve/src | |
| parent | 8e3f61b9f955c3393786be62e9d3a9ae989e49b8 (diff) | |
| parent | 589c2fe24d1f9e7bde8a50b07bb53eb4fbee6d8e (diff) | |
| download | rust-bd305e10c2b4b16048f152ee63ff546cd764d358.tar.gz rust-bd305e10c2b4b16048f152ee63ff546cd764d358.zip | |
Rollup merge of #124510 - linyihai:raw-ident-in-typo-suggestion, r=fmease
Add raw identifier in a typo suggestion Fixes #68962
Diffstat (limited to 'compiler/rustc_resolve/src')
| -rw-r--r-- | compiler/rustc_resolve/src/diagnostics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/diagnostics.rs b/compiler/rustc_resolve/src/diagnostics.rs index 12484462f82..01e279b6d04 100644 --- a/compiler/rustc_resolve/src/diagnostics.rs +++ b/compiler/rustc_resolve/src/diagnostics.rs @@ -1617,7 +1617,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> { let post = format!(", consider renaming `{}` into `{snippet}`", suggestion.candidate); (span, snippet, post) } else { - (span, suggestion.candidate.to_string(), String::new()) + (span, suggestion.candidate.to_ident_string(), String::new()) }; let msg = match suggestion.target { SuggestionTarget::SimilarlyNamed => format!( |
