diff options
| author | bors <bors@rust-lang.org> | 2024-12-29 23:16:13 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-12-29 23:16:13 +0000 |
| commit | 6cd33d889d0cd554e195d0eb9a38af88152b786f (patch) | |
| tree | 6a6dd2bc5ea2f3d518fcc133cac873f6ef203ec3 /compiler/rustc_parse/src/parser | |
| parent | 14ee63a3c651bb7a243c8b07333749ab4b152e13 (diff) | |
| parent | e178795dbae6bd0e11b24db250fb5dfb8b0211b0 (diff) | |
| download | rust-6cd33d889d0cd554e195d0eb9a38af88152b786f.tar.gz rust-6cd33d889d0cd554e195d0eb9a38af88152b786f.zip | |
Auto merge of #134901 - matthiaskrgr:rollup-b0wwuht, r=matthiaskrgr
Rollup of 4 pull requests Successful merges: - #134870 (Fix sentence fragment in `pin` module docs) - #134884 (Fix typos) - #134892 (Added codegen test for elidings bounds check when indexes are manually checked) - #134894 (Document how to run the split Docker pipelines) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -rw-r--r-- | compiler/rustc_parse/src/parser/diagnostics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/diagnostics.rs b/compiler/rustc_parse/src/parser/diagnostics.rs index 7df7e732925..9ee6c2fae1a 100644 --- a/compiler/rustc_parse/src/parser/diagnostics.rs +++ b/compiler/rustc_parse/src/parser/diagnostics.rs @@ -755,7 +755,7 @@ impl<'a> Parser<'a> { // When there are a few keywords in the last ten elements of `self.expected_token_types` // and the current token is an identifier, it's probably a misspelled keyword. This handles // code like `async Move {}`, misspelled `if` in match guard, misspelled `else` in - // `if`-`else` and mispelled `where` in a where clause. + // `if`-`else` and misspelled `where` in a where clause. if !expected_keywords.is_empty() && !curr_ident.is_used_keyword() && let Some(misspelled_kw) = find_similar_kw(curr_ident, &expected_keywords) |
