From d8532effe77fed671416f5f06eb47fe51946e48d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maja=20K=C4=85dzio=C5=82ka?= Date: Sat, 1 Apr 2023 19:31:23 +0200 Subject: [PATCH] Fix trybuild drift --- test_suite/ui/invalid_name_in_default.stderr | 4 ++-- test_suite/ui/literal_out_of_range.stderr | 4 ++-- test_suite/ui/overlapping_flags.stderr | 10 ++++++---- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/test_suite/ui/invalid_name_in_default.stderr b/test_suite/ui/invalid_name_in_default.stderr index 9c8f56e..78e77b5 100644 --- a/test_suite/ui/invalid_name_in_default.stderr +++ b/test_suite/ui/invalid_name_in_default.stderr @@ -1,5 +1,5 @@ error[E0599]: no variant or associated item named `C` found for enum `Test` in the current scope - --> $DIR/invalid_name_in_default.rs:3:26 + --> ui/invalid_name_in_default.rs:3:26 | 3 | #[bitflags(default = A | C)] | ^ @@ -8,4 +8,4 @@ error[E0599]: no variant or associated item named `C` found for enum `Test` in t | help: there is a variant with a similar name: `A` ... 6 | enum Test { - | --------- variant or associated item `C` not found here + | --------- variant or associated item `C` not found for this enum diff --git a/test_suite/ui/literal_out_of_range.stderr b/test_suite/ui/literal_out_of_range.stderr index 8ee7a8b..0a45b88 100644 --- a/test_suite/ui/literal_out_of_range.stderr +++ b/test_suite/ui/literal_out_of_range.stderr @@ -1,9 +1,9 @@ error: literal out of range for `u64` - --> $DIR/literal_out_of_range.rs:5:17 + --> ui/literal_out_of_range.rs:5:17 | 5 | BigNumber = 0xdeadbeefcafebabe1337, | ^^^^^^^^^^^^^^^^^^^^^^ | - = note: `#[deny(overflowing_literals)]` on by default = note: the literal `0xdeadbeefcafebabe1337` (decimal `1051570404360395033547575`) does not fit into the type `u64` and will become `13758438582043677495u64` = help: consider using the type `u128` instead + = note: `#[deny(overflowing_literals)]` on by default diff --git a/test_suite/ui/overlapping_flags.stderr b/test_suite/ui/overlapping_flags.stderr index e5bf66a..4fbf945 100644 --- a/test_suite/ui/overlapping_flags.stderr +++ b/test_suite/ui/overlapping_flags.stderr @@ -1,7 +1,9 @@ -error[E0081]: discriminant value `1` already exists - --> $DIR/overlapping_flags.rs:6:23 +error[E0081]: discriminant value `1` assigned more than once + --> ui/overlapping_flags.rs:4:1 | +4 | enum Foo { + | ^^^^^^^^ 5 | SomeFlag = 1 << 0, - | ------ first use of `1` + | ------ `1` assigned here 6 | OverlappingFlag = 1 << 0, - | ^^^^^^ enum already has `1` + | ------ `1` assigned here