1
Fork 0

Remove crate_visibility_modifier from 2018 edition

This commit is contained in:
Mark Rousskov 2018-09-06 10:47:41 -06:00 committed by Matthias Krüger
parent 4d1ec81811
commit 5af06768a9
9 changed files with 9 additions and 9 deletions

View file

@ -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),

View file

@ -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

View file

@ -10,7 +10,7 @@
// edition:2018
#![feature(edition_2018_preview)]
#![feature(crate_visibility_modifier)]
mod bar {
crate struct Foo;

View file

@ -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 {

View file

@ -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 {

View file

@ -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)]

View file

@ -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)]

View file

@ -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};

View file

@ -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};