Remove crate_visibility_modifier from 2018 edition
This commit is contained in:
parent
4d1ec81811
commit
5af06768a9
9 changed files with 9 additions and 9 deletions
|
@ -389,7 +389,7 @@ declare_features! (
|
|||
(active, non_exhaustive, "1.22.0", Some(44109), None),
|
||||
|
||||
// `crate` as visibility modifier, synonymous to `pub(crate)`
|
||||
(active, crate_visibility_modifier, "1.23.0", Some(45388), Some(Edition::Edition2018)),
|
||||
(active, crate_visibility_modifier, "1.23.0", Some(45388), None),
|
||||
|
||||
// extern types
|
||||
(active, extern_types, "1.23.0", Some(43467), None),
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
// edition:2018
|
||||
|
||||
#![deny(unused_extern_crates)]
|
||||
#![feature(alloc, test, libc)]
|
||||
#![feature(alloc, test, libc, crate_visibility_modifier)]
|
||||
|
||||
extern crate alloc;
|
||||
//~^ ERROR unused extern crate
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// edition:2018
|
||||
|
||||
#![feature(edition_2018_preview)]
|
||||
#![feature(crate_visibility_modifier)]
|
||||
|
||||
mod bar {
|
||||
crate struct Foo;
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// run-rustfix
|
||||
|
||||
#![feature(rust_2018_preview)]
|
||||
#![feature(rust_2018_preview, crate_visibility_modifier)]
|
||||
#![deny(absolute_paths_not_starting_with_crate)]
|
||||
|
||||
mod foo {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// run-rustfix
|
||||
|
||||
#![feature(rust_2018_preview)]
|
||||
#![feature(rust_2018_preview, crate_visibility_modifier)]
|
||||
#![deny(absolute_paths_not_starting_with_crate)]
|
||||
|
||||
mod foo {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// run-rustfix
|
||||
|
||||
#![feature(rust_2018_preview)]
|
||||
#![feature(rust_2018_preview, crate_visibility_modifier)]
|
||||
#![deny(absolute_paths_not_starting_with_crate)]
|
||||
#![allow(unused_imports)]
|
||||
#![allow(dead_code)]
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// run-rustfix
|
||||
|
||||
#![feature(rust_2018_preview)]
|
||||
#![feature(rust_2018_preview, crate_visibility_modifier)]
|
||||
#![deny(absolute_paths_not_starting_with_crate)]
|
||||
#![allow(unused_imports)]
|
||||
#![allow(dead_code)]
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// run-rustfix
|
||||
|
||||
#![feature(rust_2018_preview)]
|
||||
#![feature(rust_2018_preview, crate_visibility_modifier)]
|
||||
#![deny(absolute_paths_not_starting_with_crate)]
|
||||
|
||||
use crate::foo::{a, b};
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
// run-rustfix
|
||||
|
||||
#![feature(rust_2018_preview)]
|
||||
#![feature(rust_2018_preview, crate_visibility_modifier)]
|
||||
#![deny(absolute_paths_not_starting_with_crate)]
|
||||
|
||||
use foo::{a, b};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue