Skip to content

Commit 029bc5a

Browse files
committed
fix tests
1 parent 8f57684 commit 029bc5a

File tree

2 files changed

+3
-20
lines changed

2 files changed

+3
-20
lines changed

tests/ui/rust-2024/reserved-guarded-strings-lexing.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,5 @@ fn main() {
1616
// Non-ascii identifiers
1717
demo2!(Ñ"foo"); //~ ERROR prefix `Ñ` is unknown
1818
demo4!(Ñ#""#); //~ ERROR prefix `Ñ` is unknown
19-
demo3!(🙃#"");
20-
//~^ ERROR prefix `🙃` is unknown
21-
//~| WARNING identifier contains an uncommon character
19+
demo3!(🙃#""); //~ ERROR identifiers cannot contain emoji
2220
}

tests/ui/rust-2024/reserved-guarded-strings-lexing.stderr

+2-17
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,11 @@ help: consider inserting whitespace here
2222
LL | demo4!(Ñ #""#);
2323
| +
2424

25-
error: prefix `🙃` is unknown
26-
--> $DIR/reserved-guarded-strings-lexing.rs:19:12
27-
|
28-
LL | demo3!(🙃#"");
29-
| ^^ unknown prefix
30-
|
31-
= note: prefixed identifiers and literals are reserved since Rust 2021
32-
help: consider inserting whitespace here
33-
|
34-
LL | demo3!(🙃 #"");
35-
| +
36-
37-
warning: identifier contains an uncommon character: '🙃'
25+
error: identifiers cannot contain emoji: `🙃`
3826
--> $DIR/reserved-guarded-strings-lexing.rs:19:12
3927
|
4028
LL | demo3!(🙃#"");
4129
| ^^
42-
|
43-
= note: this character is included in the Unicode general security profile
44-
= note: `#[warn(uncommon_codepoints)]` on by default
4530

46-
error: aborting due to 3 previous errors; 1 warning emitted
31+
error: aborting due to 3 previous errors
4732

0 commit comments

Comments
 (0)