From 237e53e11f08b5ad19bad9b200bcfd9367658cdc Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Tue, 16 May 2023 07:34:53 -0700 Subject: [PATCH] Fix tests for 1.71 --- tests/error-tests/tests/macro-expansion-inside-1.rs | 4 ++-- tests/error-tests/tests/macro_expansion_inside_mod1.rs | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/error-tests/tests/macro-expansion-inside-1.rs b/tests/error-tests/tests/macro-expansion-inside-1.rs index acd8c40..4a30872 100644 --- a/tests/error-tests/tests/macro-expansion-inside-1.rs +++ b/tests/error-tests/tests/macro-expansion-inside-1.rs @@ -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 diff --git a/tests/error-tests/tests/macro_expansion_inside_mod1.rs b/tests/error-tests/tests/macro_expansion_inside_mod1.rs index 379fb22..1f59afb 100644 --- a/tests/error-tests/tests/macro_expansion_inside_mod1.rs +++ b/tests/error-tests/tests/macro_expansion_inside_mod1.rs @@ -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) @@ -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 } } }