Stabilize crate_in_paths, extern_absolute_paths and extern_prelude on all editions.
This commit is contained in:
parent
c97b60ff3f
commit
fa2c246384
19 changed files with 61 additions and 181 deletions
|
|
@ -7,6 +7,5 @@ all:
|
|||
$(RUSTC) basic.rs --extern ep_lib=$(TMPDIR)/libep_lib.rlib
|
||||
$(RUSTC) shadow-mod.rs --extern ep_lib=$(TMPDIR)/libep_lib.rlib
|
||||
$(RUSTC) shadow-prelude.rs --extern Vec=$(TMPDIR)/libep_vec.rlib
|
||||
$(RUSTC) feature-gate.rs --extern ep_lib=$(TMPDIR)/libep_lib.rlib 2>&1 | $(CGREP) "access to extern crates through prelude is experimental"
|
||||
$(RUSTC) relative-only.rs --extern ep_lib=$(TMPDIR)/libep_lib.rlib 2>&1 | $(CGREP) "unresolved import"
|
||||
$(RUSTC) relative-only.rs --extern ep_lib=$(TMPDIR)/libep_lib.rlib 2>&1 | $(CGREP) "failed to resolve"
|
||||
|
|
|
|||
|
|
@ -1,13 +0,0 @@
|
|||
// Copyright 2018 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.
|
||||
|
||||
fn main() {
|
||||
let s = ep_lib::S; // Feature error
|
||||
}
|
||||
|
|
@ -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
|
||||
}
|
||||
|
|
@ -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`.
|
||||
8
src/test/ui/hygiene/dollar-crate-modern.stderr
Normal file
8
src/test/ui/hygiene/dollar-crate-modern.stderr
Normal file
|
|
@ -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
|
||||
|
||||
8
src/test/ui/macros/macro-path-prelude-pass.stderr
Normal file
8
src/test/ui/macros/macro-path-prelude-pass.stderr
Normal file
|
|
@ -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
|
||||
|
||||
8
src/test/ui/run-pass/extern/extern-prelude-core.stderr
vendored
Normal file
8
src/test/ui/run-pass/extern/extern-prelude-core.stderr
vendored
Normal file
|
|
@ -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
|
||||
|
||||
8
src/test/ui/run-pass/extern/extern-prelude-std.stderr
vendored
Normal file
8
src/test/ui/run-pass/extern/extern-prelude-std.stderr
vendored
Normal file
|
|
@ -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
|
||||
|
||||
|
|
@ -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
|
||||
|
||||
|
|
@ -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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue