Skip to content

Commit dcd5118

Browse files
committed
fixed double-space
1 parent fcc577a commit dcd5118

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

compiler/rustc_lint/messages.ftl

+2-2
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,9 @@ lint_identifier_uncommon_codepoints = identifier contains {$codepoints_len ->
259259
.note = {$codepoints_len ->
260260
[one] this character is
261261
*[other] these characters are
262-
} included in the {$identifier_type ->
262+
} included in the{$identifier_type ->
263263
[Restricted] {""}
264-
*[other] {$identifier_type}
264+
*[other] {" "}{$identifier_type}
265265
} Unicode general security profile
266266
267267
lint_ignored_unless_crate_specified = {$level}({$name}) is ignored unless specified at crate level

tests/ui/lexer/lex-emoji-identifiers.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ warning: identifier contains an uncommon character: '\u{fe0f}'
4646
LL | let key1️⃣ = "keycap sequence";
4747
| ^^^^
4848
|
49-
= note: this character is included in the Unicode general security profile
49+
= note: this character is included in the Unicode general security profile
5050
= note: `#[warn(uncommon_codepoints)]` on by default
5151

5252
error: aborting due to 7 previous errors; 1 warning emitted

tests/ui/lint/rfc-2457-non-ascii-idents/lint-uncommon-codepoints.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ error: identifier contains uncommon characters: 'ㇻ', 'ㇲ', and 'ㇳ'
2525
LL | let ㇻㇲㇳ = "rust";
2626
| ^^^^^^
2727
|
28-
= note: these characters are included in the Unicode general security profile
28+
= note: these characters are included in the Unicode general security profile
2929

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

0 commit comments

Comments
 (0)