Skip to content

Commit

Permalink
fixed double-space
Browse files Browse the repository at this point in the history
  • Loading branch information
HTGAzureX1212 committed Feb 26, 2024
1 parent fcc577a commit dcd5118
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_lint/messages.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ lint_identifier_uncommon_codepoints = identifier contains {$codepoints_len ->
.note = {$codepoints_len ->
[one] this character is
*[other] these characters are
} included in the {$identifier_type ->
} included in the{$identifier_type ->
[Restricted] {""}
*[other] {$identifier_type}
*[other] {" "}{$identifier_type}
} Unicode general security profile
lint_ignored_unless_crate_specified = {$level}({$name}) is ignored unless specified at crate level
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/lexer/lex-emoji-identifiers.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ warning: identifier contains an uncommon character: '\u{fe0f}'
LL | let key1️⃣ = "keycap sequence";
| ^^^^
|
= note: this character is included in the Unicode general security profile
= note: this character is included in the Unicode general security profile
= note: `#[warn(uncommon_codepoints)]` on by default

error: aborting due to 7 previous errors; 1 warning emitted
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ error: identifier contains uncommon characters: 'ㇻ', 'ㇲ', and 'ㇳ'
LL | let ㇻㇲㇳ = "rust";
| ^^^^^^
|
= note: these characters are included in the Unicode general security profile
= note: these characters are included in the Unicode general security profile

warning: constant `µ` should have an upper case name
--> $DIR/lint-uncommon-codepoints.rs:3:7
Expand Down

0 comments on commit dcd5118

Please sign in to comment.