summaryrefslogtreecommitdiffstats
path: root/src/test/ui/unknown-unstable-lints
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:18:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:18:58 +0000
commita4b7ed7a42c716ab9f05e351f003d589124fd55d (patch)
treeb620cd3f223850b28716e474e80c58059dca5dd4 /src/test/ui/unknown-unstable-lints
parentAdding upstream version 1.67.1+dfsg1. (diff)
downloadrustc-a4b7ed7a42c716ab9f05e351f003d589124fd55d.tar.xz
rustc-a4b7ed7a42c716ab9f05e351f003d589124fd55d.zip
Adding upstream version 1.68.2+dfsg1.upstream/1.68.2+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/unknown-unstable-lints')
-rw-r--r--src/test/ui/unknown-unstable-lints/allow-unknown-unstable-lint-command-line.rs4
-rw-r--r--src/test/ui/unknown-unstable-lints/allow-unknown-unstable-lint-inline.rs5
-rw-r--r--src/test/ui/unknown-unstable-lints/deny-unstable-lint-command-line.rs6
-rw-r--r--src/test/ui/unknown-unstable-lints/deny-unstable-lint-command-line.stderr18
-rw-r--r--src/test/ui/unknown-unstable-lints/deny-unstable-lint-inline.rs9
-rw-r--r--src/test/ui/unknown-unstable-lints/deny-unstable-lint-inline.stderr34
-rw-r--r--src/test/ui/unknown-unstable-lints/warn-unknown-unstable-lint-command-line.rs6
-rw-r--r--src/test/ui/unknown-unstable-lints/warn-unknown-unstable-lint-command-line.stderr18
-rw-r--r--src/test/ui/unknown-unstable-lints/warn-unknown-unstable-lint-inline.rs9
-rw-r--r--src/test/ui/unknown-unstable-lints/warn-unknown-unstable-lint-inline.stderr34
10 files changed, 0 insertions, 143 deletions
diff --git a/src/test/ui/unknown-unstable-lints/allow-unknown-unstable-lint-command-line.rs b/src/test/ui/unknown-unstable-lints/allow-unknown-unstable-lint-command-line.rs
deleted file mode 100644
index 80e30f239..000000000
--- a/src/test/ui/unknown-unstable-lints/allow-unknown-unstable-lint-command-line.rs
+++ /dev/null
@@ -1,4 +0,0 @@
-// check-pass
-// compile-flags: -Aunknown_lints -Atest_unstable_lint
-
-fn main() {}
diff --git a/src/test/ui/unknown-unstable-lints/allow-unknown-unstable-lint-inline.rs b/src/test/ui/unknown-unstable-lints/allow-unknown-unstable-lint-inline.rs
deleted file mode 100644
index 992472c89..000000000
--- a/src/test/ui/unknown-unstable-lints/allow-unknown-unstable-lint-inline.rs
+++ /dev/null
@@ -1,5 +0,0 @@
-// check-pass
-
-#![allow(unknown_lints, test_unstable_lint)]
-
-fn main() {}
diff --git a/src/test/ui/unknown-unstable-lints/deny-unstable-lint-command-line.rs b/src/test/ui/unknown-unstable-lints/deny-unstable-lint-command-line.rs
deleted file mode 100644
index dcc06850d..000000000
--- a/src/test/ui/unknown-unstable-lints/deny-unstable-lint-command-line.rs
+++ /dev/null
@@ -1,6 +0,0 @@
-// check-fail
-// compile-flags: -Dunknown_lints -Atest_unstable_lint
-// error-pattern: unknown lint: `test_unstable_lint`
-// error-pattern: the `test_unstable_lint` lint is unstable
-
-fn main() {}
diff --git a/src/test/ui/unknown-unstable-lints/deny-unstable-lint-command-line.stderr b/src/test/ui/unknown-unstable-lints/deny-unstable-lint-command-line.stderr
deleted file mode 100644
index aa73b824a..000000000
--- a/src/test/ui/unknown-unstable-lints/deny-unstable-lint-command-line.stderr
+++ /dev/null
@@ -1,18 +0,0 @@
-error: unknown lint: `test_unstable_lint`
- |
- = note: the `test_unstable_lint` lint is unstable
- = help: add `#![feature(test_unstable_lint)]` to the crate attributes to enable
- = note: requested on the command line with `-D unknown-lints`
-
-error: unknown lint: `test_unstable_lint`
- |
- = note: the `test_unstable_lint` lint is unstable
- = help: add `#![feature(test_unstable_lint)]` to the crate attributes to enable
-
-error: unknown lint: `test_unstable_lint`
- |
- = note: the `test_unstable_lint` lint is unstable
- = help: add `#![feature(test_unstable_lint)]` to the crate attributes to enable
-
-error: aborting due to 3 previous errors
-
diff --git a/src/test/ui/unknown-unstable-lints/deny-unstable-lint-inline.rs b/src/test/ui/unknown-unstable-lints/deny-unstable-lint-inline.rs
deleted file mode 100644
index c6c60b12d..000000000
--- a/src/test/ui/unknown-unstable-lints/deny-unstable-lint-inline.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-// check-fail
-
-#![deny(unknown_lints)]
-#![allow(test_unstable_lint)]
-//~^ ERROR unknown lint: `test_unstable_lint`
-//~| ERROR unknown lint: `test_unstable_lint`
-//~| ERROR unknown lint: `test_unstable_lint`
-
-fn main() {}
diff --git a/src/test/ui/unknown-unstable-lints/deny-unstable-lint-inline.stderr b/src/test/ui/unknown-unstable-lints/deny-unstable-lint-inline.stderr
deleted file mode 100644
index 2a2a9811b..000000000
--- a/src/test/ui/unknown-unstable-lints/deny-unstable-lint-inline.stderr
+++ /dev/null
@@ -1,34 +0,0 @@
-error: unknown lint: `test_unstable_lint`
- --> $DIR/deny-unstable-lint-inline.rs:4:1
- |
-LL | #![allow(test_unstable_lint)]
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- |
- = note: the `test_unstable_lint` lint is unstable
- = help: add `#![feature(test_unstable_lint)]` to the crate attributes to enable
-note: the lint level is defined here
- --> $DIR/deny-unstable-lint-inline.rs:3:9
- |
-LL | #![deny(unknown_lints)]
- | ^^^^^^^^^^^^^
-
-error: unknown lint: `test_unstable_lint`
- --> $DIR/deny-unstable-lint-inline.rs:4:1
- |
-LL | #![allow(test_unstable_lint)]
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- |
- = note: the `test_unstable_lint` lint is unstable
- = help: add `#![feature(test_unstable_lint)]` to the crate attributes to enable
-
-error: unknown lint: `test_unstable_lint`
- --> $DIR/deny-unstable-lint-inline.rs:4:1
- |
-LL | #![allow(test_unstable_lint)]
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- |
- = note: the `test_unstable_lint` lint is unstable
- = help: add `#![feature(test_unstable_lint)]` to the crate attributes to enable
-
-error: aborting due to 3 previous errors
-
diff --git a/src/test/ui/unknown-unstable-lints/warn-unknown-unstable-lint-command-line.rs b/src/test/ui/unknown-unstable-lints/warn-unknown-unstable-lint-command-line.rs
deleted file mode 100644
index 3778291eb..000000000
--- a/src/test/ui/unknown-unstable-lints/warn-unknown-unstable-lint-command-line.rs
+++ /dev/null
@@ -1,6 +0,0 @@
-// check-pass
-// compile-flags: -Wunknown_lints -Atest_unstable_lint
-// error-pattern: unknown lint: `test_unstable_lint`
-// error-pattern: the `test_unstable_lint` lint is unstable
-
-fn main() {}
diff --git a/src/test/ui/unknown-unstable-lints/warn-unknown-unstable-lint-command-line.stderr b/src/test/ui/unknown-unstable-lints/warn-unknown-unstable-lint-command-line.stderr
deleted file mode 100644
index 82851c800..000000000
--- a/src/test/ui/unknown-unstable-lints/warn-unknown-unstable-lint-command-line.stderr
+++ /dev/null
@@ -1,18 +0,0 @@
-warning: unknown lint: `test_unstable_lint`
- |
- = note: the `test_unstable_lint` lint is unstable
- = help: add `#![feature(test_unstable_lint)]` to the crate attributes to enable
- = note: requested on the command line with `-W unknown-lints`
-
-warning: unknown lint: `test_unstable_lint`
- |
- = note: the `test_unstable_lint` lint is unstable
- = help: add `#![feature(test_unstable_lint)]` to the crate attributes to enable
-
-warning: unknown lint: `test_unstable_lint`
- |
- = note: the `test_unstable_lint` lint is unstable
- = help: add `#![feature(test_unstable_lint)]` to the crate attributes to enable
-
-warning: 3 warnings emitted
-
diff --git a/src/test/ui/unknown-unstable-lints/warn-unknown-unstable-lint-inline.rs b/src/test/ui/unknown-unstable-lints/warn-unknown-unstable-lint-inline.rs
deleted file mode 100644
index f4247e456..000000000
--- a/src/test/ui/unknown-unstable-lints/warn-unknown-unstable-lint-inline.rs
+++ /dev/null
@@ -1,9 +0,0 @@
-// check-pass
-
-#![warn(unknown_lints)]
-#![allow(test_unstable_lint)]
-//~^ WARNING unknown lint: `test_unstable_lint`
-//~| WARNING unknown lint: `test_unstable_lint`
-//~| WARNING unknown lint: `test_unstable_lint`
-
-fn main() {}
diff --git a/src/test/ui/unknown-unstable-lints/warn-unknown-unstable-lint-inline.stderr b/src/test/ui/unknown-unstable-lints/warn-unknown-unstable-lint-inline.stderr
deleted file mode 100644
index 0548cd226..000000000
--- a/src/test/ui/unknown-unstable-lints/warn-unknown-unstable-lint-inline.stderr
+++ /dev/null
@@ -1,34 +0,0 @@
-warning: unknown lint: `test_unstable_lint`
- --> $DIR/warn-unknown-unstable-lint-inline.rs:4:1
- |
-LL | #![allow(test_unstable_lint)]
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- |
- = note: the `test_unstable_lint` lint is unstable
- = help: add `#![feature(test_unstable_lint)]` to the crate attributes to enable
-note: the lint level is defined here
- --> $DIR/warn-unknown-unstable-lint-inline.rs:3:9
- |
-LL | #![warn(unknown_lints)]
- | ^^^^^^^^^^^^^
-
-warning: unknown lint: `test_unstable_lint`
- --> $DIR/warn-unknown-unstable-lint-inline.rs:4:1
- |
-LL | #![allow(test_unstable_lint)]
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- |
- = note: the `test_unstable_lint` lint is unstable
- = help: add `#![feature(test_unstable_lint)]` to the crate attributes to enable
-
-warning: unknown lint: `test_unstable_lint`
- --> $DIR/warn-unknown-unstable-lint-inline.rs:4:1
- |
-LL | #![allow(test_unstable_lint)]
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- |
- = note: the `test_unstable_lint` lint is unstable
- = help: add `#![feature(test_unstable_lint)]` to the crate attributes to enable
-
-warning: 3 warnings emitted
-