From 198089fac8200b51c366f5a0955835a8fc79d97e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20K=C4=85dzio=C5=82ka?= Date: Mon, 13 Dec 2021 22:26:28 +0100 Subject: [PATCH] ui tests: update expected output for latest nightly --- test_suite/ui/invalid_attribute_syntax.stderr | 6 +++--- test_suite/ui/not_enum.rs | 1 - test_suite/ui/not_enum.stderr | 11 ++--------- 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/test_suite/ui/invalid_attribute_syntax.stderr b/test_suite/ui/invalid_attribute_syntax.stderr index ca36e97..1d81cb3 100644 --- a/test_suite/ui/invalid_attribute_syntax.stderr +++ b/test_suite/ui/invalid_attribute_syntax.stderr @@ -10,7 +10,7 @@ error: unexpected end of input, expected identifier 9 | #[bitflags(default = A |)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | - = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) + = note: this error originates in the attribute macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) error: unexpected end of input, expected identifier --> $DIR/invalid_attribute_syntax.rs:15:1 @@ -18,7 +18,7 @@ error: unexpected end of input, expected identifier 15 | #[bitflags(default =)] | ^^^^^^^^^^^^^^^^^^^^^^ | - = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) + = note: this error originates in the attribute macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) error: expected `=` --> $DIR/invalid_attribute_syntax.rs:21:1 @@ -26,7 +26,7 @@ error: expected `=` 21 | #[bitflags(default)] | ^^^^^^^^^^^^^^^^^^^^ | - = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) + = note: this error originates in the attribute macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) error: expected `default` --> $DIR/invalid_attribute_syntax.rs:27:12 diff --git a/test_suite/ui/not_enum.rs b/test_suite/ui/not_enum.rs index 3870a17..339a5be 100644 --- a/test_suite/ui/not_enum.rs +++ b/test_suite/ui/not_enum.rs @@ -3,7 +3,6 @@ struct Foo(u16); #[enumflags2::bitflags] -#[derive(Copy, Clone)] const WTF: u8 = 42; fn main() {} diff --git a/test_suite/ui/not_enum.stderr b/test_suite/ui/not_enum.stderr index 2e0fdd0..cc5d1aa 100644 --- a/test_suite/ui/not_enum.stderr +++ b/test_suite/ui/not_enum.stderr @@ -5,15 +5,8 @@ error: #[bitflags] requires an enum 3 | | struct Foo(u16); | |________________^ -error[E0774]: `derive` may only be applied to structs, enums and unions - --> $DIR/not_enum.rs:6:1 - | -6 | #[derive(Copy, Clone)] - | ^^^^^^^^^^^^^^^^^^^^^^ - error: #[bitflags] requires an enum --> $DIR/not_enum.rs:6:1 | -6 | / #[derive(Copy, Clone)] -7 | | const WTF: u8 = 42; - | |___________________^ +6 | const WTF: u8 = 42; + | ^^^^^^^^^^^^^^^^^^^