Skip to content

Fix tests for 1.71 #509

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/error-tests/tests/macro-expansion-inside-1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ mod macro_expansion_inside_mod1;
/*BEGIN*/example_bad_syntax!{}/*END*/
// ~HELP(>=1.20.0) in this macro invocation
// ~HELP(>=1.20.0,<1.34.0-beta) in this macro invocation
// ~MSG(>=1.20.0) See Primary: macro_expansion_inside_mod1.rs:8
// ~MSG(>=1.20.0,<1.34.0-beta) See Primary: macro_expansion_inside_mod1.rs:7
// ~MSG(>=1.20.0) See Primary: macro_expansion_inside_mod1.rs:11
// ~MSG(>=1.20.0,<1.34.0-beta) See Primary: macro_expansion_inside_mod1.rs:11
4 changes: 4 additions & 0 deletions tests/error-tests/tests/macro_expansion_inside_mod1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ macro_rules! example_bad_syntax {
() => {
enum E {
// ^ERR(>=1.71.0-beta) while parsing this enum
// ^^^^HELP(>=1.71.0-beta) perhaps you meant to use `struct` here
// ^^^^HELP(>=1.71.0-beta) /Accept Replacement:.*/
// ^^^^MSG(>=1.71.0-beta) See Primary: ↓:11
// This is somewhat of an odd example, since rustc gives two
// syntax errors.
Kind(x: u32)
Expand All @@ -14,6 +17,7 @@ macro_rules! example_bad_syntax {
// ^ERR(>=1.18.0,<1.34.0-beta) expected one of
// ^MSG(>=1.20.0,<1.34.0-beta) See Also: macro-expansion-inside-1.rs:6
// ^HELP(>=1.71.0-beta) enum variants can be
// ^MSG(>=1.71.0-beta) See Also: ↑:4
}
}
}