about summary refs log tree commit diff
path: root/src/test/ui
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2018-09-20 20:39:46 +0300
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2018-09-22 09:26:40 +0300
commitfa2c24638493cc91c08a9ddab979448286e3dea1 (patch)
tree53a2168a9b7b3ec4e3475cff122d4c7c28cf0251 /src/test/ui
parentc97b60ff3fcf1830e7e19ceeaea4046dc126911d (diff)
downloadrust-fa2c24638493cc91c08a9ddab979448286e3dea1.tar.gz
rust-fa2c24638493cc91c08a9ddab979448286e3dea1.zip
Stabilize crate_in_paths, extern_absolute_paths and extern_prelude on all editions.
Diffstat (limited to 'src/test/ui')
-rw-r--r--src/test/ui/feature-gates/feature-gate-crate_in_paths.rs15
-rw-r--r--src/test/ui/feature-gates/feature-gate-crate_in_paths.stderr11
-rw-r--r--src/test/ui/hygiene/dollar-crate-modern.stderr8
-rw-r--r--src/test/ui/macros/macro-path-prelude-pass.stderr8
-rw-r--r--src/test/ui/run-pass/extern/extern-prelude-core.stderr8
-rw-r--r--src/test/ui/run-pass/extern/extern-prelude-std.stderr8
-rw-r--r--src/test/ui/run-pass/rfcs/rfc-2126-crate-paths/crate-path-absolute.stderr8
-rw-r--r--src/test/ui/run-pass/rfcs/rfc-2126-crate-paths/crate-path-visibility-ambiguity.stderr8
8 files changed, 48 insertions, 26 deletions
diff --git a/src/test/ui/feature-gates/feature-gate-crate_in_paths.rs b/src/test/ui/feature-gates/feature-gate-crate_in_paths.rs
deleted file mode 100644
index e667dab621b..00000000000
--- a/src/test/ui/feature-gates/feature-gate-crate_in_paths.rs
+++ /dev/null
@@ -1,15 +0,0 @@
-// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-struct S;
-
-fn main() {
-    let _ = crate::S; //~ ERROR `crate` in paths is experimental
-}
diff --git a/src/test/ui/feature-gates/feature-gate-crate_in_paths.stderr b/src/test/ui/feature-gates/feature-gate-crate_in_paths.stderr
deleted file mode 100644
index 32115ba2111..00000000000
--- a/src/test/ui/feature-gates/feature-gate-crate_in_paths.stderr
+++ /dev/null
@@ -1,11 +0,0 @@
-error[E0658]: `crate` in paths is experimental (see issue #45477)
-  --> $DIR/feature-gate-crate_in_paths.rs:14:13
-   |
-LL |     let _ = crate::S; //~ ERROR `crate` in paths is experimental
-   |             ^^^^^
-   |
-   = help: add #![feature(crate_in_paths)] to the crate attributes to enable
-
-error: aborting due to previous error
-
-For more information about this error, try `rustc --explain E0658`.
diff --git a/src/test/ui/hygiene/dollar-crate-modern.stderr b/src/test/ui/hygiene/dollar-crate-modern.stderr
new file mode 100644
index 00000000000..5fa7d8eda1d
--- /dev/null
+++ b/src/test/ui/hygiene/dollar-crate-modern.stderr
@@ -0,0 +1,8 @@
+warning: the feature `crate_in_paths` has been stable since 1.30.0 and no longer requires an attribute to enable
+  --> $DIR/dollar-crate-modern.rs:16:24
+   |
+LL | #![feature(decl_macro, crate_in_paths)]
+   |                        ^^^^^^^^^^^^^^
+   |
+   = note: #[warn(stable_features)] on by default
+
diff --git a/src/test/ui/macros/macro-path-prelude-pass.stderr b/src/test/ui/macros/macro-path-prelude-pass.stderr
new file mode 100644
index 00000000000..edae6a3e3cd
--- /dev/null
+++ b/src/test/ui/macros/macro-path-prelude-pass.stderr
@@ -0,0 +1,8 @@
+warning: the feature `extern_prelude` has been stable since 1.30.0 and no longer requires an attribute to enable
+  --> $DIR/macro-path-prelude-pass.rs:13:12
+   |
+LL | #![feature(extern_prelude)]
+   |            ^^^^^^^^^^^^^^
+   |
+   = note: #[warn(stable_features)] on by default
+
diff --git a/src/test/ui/run-pass/extern/extern-prelude-core.stderr b/src/test/ui/run-pass/extern/extern-prelude-core.stderr
new file mode 100644
index 00000000000..f7699531857
--- /dev/null
+++ b/src/test/ui/run-pass/extern/extern-prelude-core.stderr
@@ -0,0 +1,8 @@
+warning: the feature `extern_prelude` has been stable since 1.30.0 and no longer requires an attribute to enable
+  --> $DIR/extern-prelude-core.rs:12:12
+   |
+LL | #![feature(extern_prelude, lang_items, start, alloc)]
+   |            ^^^^^^^^^^^^^^
+   |
+   = note: #[warn(stable_features)] on by default
+
diff --git a/src/test/ui/run-pass/extern/extern-prelude-std.stderr b/src/test/ui/run-pass/extern/extern-prelude-std.stderr
new file mode 100644
index 00000000000..8c059b4ebeb
--- /dev/null
+++ b/src/test/ui/run-pass/extern/extern-prelude-std.stderr
@@ -0,0 +1,8 @@
+warning: the feature `extern_prelude` has been stable since 1.30.0 and no longer requires an attribute to enable
+  --> $DIR/extern-prelude-std.rs:12:12
+   |
+LL | #![feature(extern_prelude)]
+   |            ^^^^^^^^^^^^^^
+   |
+   = note: #[warn(stable_features)] on by default
+
diff --git a/src/test/ui/run-pass/rfcs/rfc-2126-crate-paths/crate-path-absolute.stderr b/src/test/ui/run-pass/rfcs/rfc-2126-crate-paths/crate-path-absolute.stderr
new file mode 100644
index 00000000000..f95237fbbea
--- /dev/null
+++ b/src/test/ui/run-pass/rfcs/rfc-2126-crate-paths/crate-path-absolute.stderr
@@ -0,0 +1,8 @@
+warning: the feature `crate_in_paths` has been stable since 1.30.0 and no longer requires an attribute to enable
+  --> $DIR/crate-path-absolute.rs:12:12
+   |
+LL | #![feature(crate_in_paths)]
+   |            ^^^^^^^^^^^^^^
+   |
+   = note: #[warn(stable_features)] on by default
+
diff --git a/src/test/ui/run-pass/rfcs/rfc-2126-crate-paths/crate-path-visibility-ambiguity.stderr b/src/test/ui/run-pass/rfcs/rfc-2126-crate-paths/crate-path-visibility-ambiguity.stderr
new file mode 100644
index 00000000000..91f918dbd2c
--- /dev/null
+++ b/src/test/ui/run-pass/rfcs/rfc-2126-crate-paths/crate-path-visibility-ambiguity.stderr
@@ -0,0 +1,8 @@
+warning: the feature `crate_in_paths` has been stable since 1.30.0 and no longer requires an attribute to enable
+  --> $DIR/crate-path-visibility-ambiguity.rs:12:12
+   |
+LL | #![feature(crate_in_paths)]
+   |            ^^^^^^^^^^^^^^
+   |
+   = note: #[warn(stable_features)] on by default
+