From c93ed19c1abfa493695d79df09a04672eefa08cb Mon Sep 17 00:00:00 2001 From: Serhii Potapov Date: Sun, 25 Feb 2024 12:11:29 +0100 Subject: [PATCH] Fix UI test for Rust 1.76.0 --- test_suite/tests/ui/float/visibility/private.stderr | 2 +- test_suite/tests/ui/float/visibility/private_error.stderr | 2 +- test_suite/tests/ui/integer/visibility/private.stderr | 2 +- test_suite/tests/ui/integer/visibility/private_error.stderr | 2 +- test_suite/tests/ui/string/visibility/private.stderr | 2 +- test_suite/tests/ui/string/visibility/private_error.stderr | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test_suite/tests/ui/float/visibility/private.stderr b/test_suite/tests/ui/float/visibility/private.stderr index d4abf86..877f2f4 100644 --- a/test_suite/tests/ui/float/visibility/private.stderr +++ b/test_suite/tests/ui/float/visibility/private.stderr @@ -13,5 +13,5 @@ note: ...and refers to the struct `Percentage` which is defined here --> tests/ui/float/visibility/private.rs:4:5 | 4 | #[nutype(sanitize(with = |n| n.clamp(0.0, 100.0)))] - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider importing it directly + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ you could import this directly = note: this error originates in the attribute macro `nutype` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/test_suite/tests/ui/float/visibility/private_error.stderr b/test_suite/tests/ui/float/visibility/private_error.stderr index 10ac6a6..38dbbb5 100644 --- a/test_suite/tests/ui/float/visibility/private_error.stderr +++ b/test_suite/tests/ui/float/visibility/private_error.stderr @@ -13,5 +13,5 @@ note: ...and refers to the enum `PercentageError` which is defined here --> tests/ui/float/visibility/private_error.rs:4:5 | 4 | #[nutype(validate(greater_or_equal = 0.0, less_or_equal = 100.0))] - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider importing it directly + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ you could import this directly = note: this error originates in the attribute macro `nutype` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/test_suite/tests/ui/integer/visibility/private.stderr b/test_suite/tests/ui/integer/visibility/private.stderr index 6c23fcf..f8f6dfa 100644 --- a/test_suite/tests/ui/integer/visibility/private.stderr +++ b/test_suite/tests/ui/integer/visibility/private.stderr @@ -13,5 +13,5 @@ note: ...and refers to the struct `Percentage` which is defined here --> tests/ui/integer/visibility/private.rs:4:5 | 4 | #[nutype(sanitize(with = |n: i32| n.clamp(0, 100)))] - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider importing it directly + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ you could import this directly = note: this error originates in the attribute macro `nutype` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/test_suite/tests/ui/integer/visibility/private_error.stderr b/test_suite/tests/ui/integer/visibility/private_error.stderr index 37d6957..849c91d 100644 --- a/test_suite/tests/ui/integer/visibility/private_error.stderr +++ b/test_suite/tests/ui/integer/visibility/private_error.stderr @@ -13,5 +13,5 @@ note: ...and refers to the enum `PercentageError` which is defined here --> tests/ui/integer/visibility/private_error.rs:4:5 | 4 | #[nutype(validate(greater_or_equal = 0, less_or_equal = 100))] - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider importing it directly + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ you could import this directly = note: this error originates in the attribute macro `nutype` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/test_suite/tests/ui/string/visibility/private.stderr b/test_suite/tests/ui/string/visibility/private.stderr index 391ab8e..4cc2985 100644 --- a/test_suite/tests/ui/string/visibility/private.stderr +++ b/test_suite/tests/ui/string/visibility/private.stderr @@ -13,5 +13,5 @@ note: ...and refers to the struct `Email` which is defined here --> tests/ui/string/visibility/private.rs:4:5 | 4 | #[nutype(sanitize(trim))] - | ^^^^^^^^^^^^^^^^^^^^^^^^^ consider importing it directly + | ^^^^^^^^^^^^^^^^^^^^^^^^^ you could import this directly = note: this error originates in the attribute macro `nutype` (in Nightly builds, run with -Z macro-backtrace for more info) diff --git a/test_suite/tests/ui/string/visibility/private_error.stderr b/test_suite/tests/ui/string/visibility/private_error.stderr index 3152551..afbdf46 100644 --- a/test_suite/tests/ui/string/visibility/private_error.stderr +++ b/test_suite/tests/ui/string/visibility/private_error.stderr @@ -13,5 +13,5 @@ note: ...and refers to the enum `NameError` which is defined here --> tests/ui/string/visibility/private_error.rs:4:5 | 4 | #[nutype(validate(not_empty))] - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider importing it directly + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ you could import this directly = note: this error originates in the attribute macro `nutype` (in Nightly builds, run with -Z macro-backtrace for more info)