about summary refs log tree commit diff
path: root/src/test/ui
diff options
context:
space:
mode:
authorxFrednet <xFrednet@gmail.com>2022-03-02 18:10:07 +0100
committerxFrednet <xFrednet@gmail.com>2022-03-02 18:10:07 +0100
commit5275d02433c95c577febf76271c35f7d5f86ed4a (patch)
treeb251924430b462c70555d074f43f613dae937c24 /src/test/ui
parentdefc056ccc8d0a64048b65915c9d9b29fd5d4ba2 (diff)
downloadrust-5275d02433c95c577febf76271c35f7d5f86ed4a.tar.gz
rust-5275d02433c95c577febf76271c35f7d5f86ed4a.zip
Use Vec for expectations to have a constant order (RFC-2383)
Diffstat (limited to 'src/test/ui')
-rw-r--r--src/test/ui/lint/rfc-2383-lint-reason/expect_multiple_lints.stderr28
-rw-r--r--src/test/ui/lint/rfc-2383-lint-reason/expect_nested_lint_levels.rs2
-rw-r--r--src/test/ui/lint/rfc-2383-lint-reason/expect_nested_lint_levels.stderr8
3 files changed, 19 insertions, 19 deletions
diff --git a/src/test/ui/lint/rfc-2383-lint-reason/expect_multiple_lints.stderr b/src/test/ui/lint/rfc-2383-lint-reason/expect_multiple_lints.stderr
index 25299aa7ec2..90ee744b26b 100644
--- a/src/test/ui/lint/rfc-2383-lint-reason/expect_multiple_lints.stderr
+++ b/src/test/ui/lint/rfc-2383-lint-reason/expect_multiple_lints.stderr
@@ -7,10 +7,10 @@ LL | #[expect(unused_variables, unused_mut, while_true)]
    = note: `#[warn(unfulfilled_lint_expectations)]` on by default
 
 warning: this lint expectation is unfulfilled
-  --> $DIR/expect_multiple_lints.rs:28:10
+  --> $DIR/expect_multiple_lints.rs:10:40
    |
 LL | #[expect(unused_variables, unused_mut, while_true)]
-   |          ^^^^^^^^^^^^^^^^
+   |                                        ^^^^^^^^^^
 
 warning: this lint expectation is unfulfilled
   --> $DIR/expect_multiple_lints.rs:19:10
@@ -19,34 +19,34 @@ LL | #[expect(unused_variables, unused_mut, while_true)]
    |          ^^^^^^^^^^^^^^^^
 
 warning: this lint expectation is unfulfilled
-  --> $DIR/expect_multiple_lints.rs:28:28
+  --> $DIR/expect_multiple_lints.rs:19:40
    |
 LL | #[expect(unused_variables, unused_mut, while_true)]
-   |                            ^^^^^^^^^^
+   |                                        ^^^^^^^^^^
 
 warning: this lint expectation is unfulfilled
-  --> $DIR/expect_multiple_lints.rs:36:18
+  --> $DIR/expect_multiple_lints.rs:28:10
    |
-LL | #[expect(unused, while_true)]
-   |                  ^^^^^^^^^^
+LL | #[expect(unused_variables, unused_mut, while_true)]
+   |          ^^^^^^^^^^^^^^^^
 
 warning: this lint expectation is unfulfilled
-  --> $DIR/expect_multiple_lints.rs:19:40
+  --> $DIR/expect_multiple_lints.rs:28:28
    |
 LL | #[expect(unused_variables, unused_mut, while_true)]
-   |                                        ^^^^^^^^^^
+   |                            ^^^^^^^^^^
 
 warning: this lint expectation is unfulfilled
-  --> $DIR/expect_multiple_lints.rs:45:10
+  --> $DIR/expect_multiple_lints.rs:36:18
    |
 LL | #[expect(unused, while_true)]
-   |          ^^^^^^
+   |                  ^^^^^^^^^^
 
 warning: this lint expectation is unfulfilled
-  --> $DIR/expect_multiple_lints.rs:10:40
+  --> $DIR/expect_multiple_lints.rs:45:10
    |
-LL | #[expect(unused_variables, unused_mut, while_true)]
-   |                                        ^^^^^^^^^^
+LL | #[expect(unused, while_true)]
+   |          ^^^^^^
 
 warning: 8 warnings emitted
 
diff --git a/src/test/ui/lint/rfc-2383-lint-reason/expect_nested_lint_levels.rs b/src/test/ui/lint/rfc-2383-lint-reason/expect_nested_lint_levels.rs
index cad6b836c7a..8f94bd6ec6c 100644
--- a/src/test/ui/lint/rfc-2383-lint-reason/expect_nested_lint_levels.rs
+++ b/src/test/ui/lint/rfc-2383-lint-reason/expect_nested_lint_levels.rs
@@ -6,6 +6,7 @@
 #[expect(
     unused_mut,
     //~^ WARNING this lint expectation is unfulfilled [unfulfilled_lint_expectations]
+    //~| NOTE `#[warn(unfulfilled_lint_expectations)]` on by default
     //~| NOTE this `expect` is overridden by a `allow` attribute before the `unused_mut` lint is triggered
     reason = "this `expect` is overridden by a `allow` attribute before the `unused_mut` lint is triggered"
 )]
@@ -22,7 +23,6 @@ mod foo {
 #[expect(
     unused_mut,
     //~^ WARNING this lint expectation is unfulfilled [unfulfilled_lint_expectations]
-    //~| NOTE `#[warn(unfulfilled_lint_expectations)]` on by default
     //~| NOTE this `expect` is overridden by a `warn` attribute before the `unused_mut` lint is triggered
     reason = "this `expect` is overridden by a `warn` attribute before the `unused_mut` lint is triggered"
 )]
diff --git a/src/test/ui/lint/rfc-2383-lint-reason/expect_nested_lint_levels.stderr b/src/test/ui/lint/rfc-2383-lint-reason/expect_nested_lint_levels.stderr
index 353cbc341f2..370e51bf70a 100644
--- a/src/test/ui/lint/rfc-2383-lint-reason/expect_nested_lint_levels.stderr
+++ b/src/test/ui/lint/rfc-2383-lint-reason/expect_nested_lint_levels.stderr
@@ -26,21 +26,21 @@ LL |         unused_mut,
    |         ^^^^^^^^^^
 
 warning: this lint expectation is unfulfilled
-  --> $DIR/expect_nested_lint_levels.rs:23:5
+  --> $DIR/expect_nested_lint_levels.rs:7:5
    |
 LL |     unused_mut,
    |     ^^^^^^^^^^
    |
    = note: `#[warn(unfulfilled_lint_expectations)]` on by default
-   = note: this `expect` is overridden by a `warn` attribute before the `unused_mut` lint is triggered
+   = note: this `expect` is overridden by a `allow` attribute before the `unused_mut` lint is triggered
 
 warning: this lint expectation is unfulfilled
-  --> $DIR/expect_nested_lint_levels.rs:7:5
+  --> $DIR/expect_nested_lint_levels.rs:24:5
    |
 LL |     unused_mut,
    |     ^^^^^^^^^^
    |
-   = note: this `expect` is overridden by a `allow` attribute before the `unused_mut` lint is triggered
+   = note: this `expect` is overridden by a `warn` attribute before the `unused_mut` lint is triggered
 
 warning: this lint expectation is unfulfilled
   --> $DIR/expect_nested_lint_levels.rs:43:10