Skip to content
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:11
// ~MSG(>=1.20.0,<1.34.0-beta) See Primary: macro_expansion_inside_mod1.rs:11
// ~MSG(>=1.20.0) See Primary: macro_expansion_inside_mod1.rs:12
// ~MSG(>=1.20.0,<1.34.0-beta) See Primary: macro_expansion_inside_mod1.rs:12
2 changes: 1 addition & 1 deletion tests/error-tests/tests/macro-expansion-outside-1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ extern crate dcrate;

/*BEGIN*/example_bad_syntax!{}/*END*/
// ^^^^^^^^^^^^^^^^^^^^^HELP(>=1.44.0-beta) in this macro invocation
// ^^^^^^^^^^^^^^^^^^^^^ERR(>=1.71.0-beta) in this macro invocation
// ^^^^^^^^^^^^^^^^^^^^^ERR(>=1.71.0-beta,<1.98.0-beta) in this macro invocation
// ^^^^^^^^^^^^^^^^^^^^^MSG(>=1.44.0-beta) See Primary: lib.rs:20
// ~ERR(>=1.20.0,<1.44.0-beta) /expected one of .*, found `:`/
// ~ERR(>=1.20.0,<1.44.0-beta) this error originates in a macro outside of the current crate
Expand Down
13 changes: 10 additions & 3 deletions tests/error-tests/tests/macro_expansion_inside_mod1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ 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
// ^MSG(>=1.98.0-beta) See Primary: ↓:12
// ^^^^HELP(>=1.71.0-beta,<1.98.0-beta) perhaps you meant to use `struct` here
// ^^^^HELP(>=1.71.0-beta,<1.98.0-beta) /Accept Replacement:.*/
// ^^^^MSG(>=1.71.0-beta,<1.98.0-beta) See Primary: ↓:12
// This is somewhat of an odd example, since rustc gives two
// syntax errors.
Kind(x: u32)
Expand All @@ -18,6 +19,12 @@ macro_rules! example_bad_syntax {
// ^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
// ^HELP(>=1.98.0-beta) if you meant to write
// ^HELP(>=1.98.0-beta) /Accept Replacement:.*/
// ^HELP(>=1.98.0-beta) if you meant to create
// ^HELP(>=1.98.0-beta) /Accept Replacement:.*/
// ^HELP(>=1.98.0-beta) if you meant to create
// ^HELP(>=1.98.0-beta) /Accept Replacement:.*/
}
}
}
Loading