Skip to content

Commit a2a6ae9

Browse files
authored
Merge pull request #509 from ehuss/tests-1.71b
Fix tests for 1.71
2 parents b45addf + 237e53e commit a2a6ae9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/error-tests/tests/macro-expansion-inside-1.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ mod macro_expansion_inside_mod1;
66
/*BEGIN*/example_bad_syntax!{}/*END*/
77
// ~HELP(>=1.20.0) in this macro invocation
88
// ~HELP(>=1.20.0,<1.34.0-beta) in this macro invocation
9-
// ~MSG(>=1.20.0) See Primary: macro_expansion_inside_mod1.rs:8
10-
// ~MSG(>=1.20.0,<1.34.0-beta) See Primary: macro_expansion_inside_mod1.rs:7
9+
// ~MSG(>=1.20.0) See Primary: macro_expansion_inside_mod1.rs:11
10+
// ~MSG(>=1.20.0,<1.34.0-beta) See Primary: macro_expansion_inside_mod1.rs:11

tests/error-tests/tests/macro_expansion_inside_mod1.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ macro_rules! example_bad_syntax {
33
() => {
44
enum E {
55
// ^ERR(>=1.71.0-beta) while parsing this enum
6+
// ^^^^HELP(>=1.71.0-beta) perhaps you meant to use `struct` here
7+
// ^^^^HELP(>=1.71.0-beta) /Accept Replacement:.*/
8+
// ^^^^MSG(>=1.71.0-beta) See Primary: ↓:11
69
// This is somewhat of an odd example, since rustc gives two
710
// syntax errors.
811
Kind(x: u32)
@@ -14,6 +17,7 @@ macro_rules! example_bad_syntax {
1417
// ^ERR(>=1.18.0,<1.34.0-beta) expected one of
1518
// ^MSG(>=1.20.0,<1.34.0-beta) See Also: macro-expansion-inside-1.rs:6
1619
// ^HELP(>=1.71.0-beta) enum variants can be
20+
// ^MSG(>=1.71.0-beta) See Also: ↑:4
1721
}
1822
}
1923
}

0 commit comments

Comments
 (0)