Skip to content

Commit

Permalink
Remove unused #![feature(custom_attribute)]s
Browse files Browse the repository at this point in the history
  • Loading branch information
petrochenkov committed Jun 8, 2019
1 parent 5c6f6b8 commit 8049e61
Show file tree
Hide file tree
Showing 15 changed files with 4 additions and 19 deletions.
1 change: 0 additions & 1 deletion src/libcore/lib.rs
Expand Up @@ -75,7 +75,6 @@
#![feature(concat_idents)]
#![feature(const_fn)]
#![feature(const_fn_union)]
#![feature(custom_attribute)]
#![feature(doc_cfg)]
#![feature(doc_spotlight)]
#![feature(extern_types)]
Expand Down
1 change: 0 additions & 1 deletion src/librustc_codegen_llvm/lib.rs
Expand Up @@ -10,7 +10,6 @@
#![feature(box_syntax)]
#![feature(const_cstr_unchecked)]
#![feature(crate_visibility_modifier)]
#![feature(custom_attribute)]
#![feature(extern_types)]
#![feature(in_band_lifetimes)]
#![allow(unused_attributes)]
Expand Down
1 change: 0 additions & 1 deletion src/librustc_codegen_ssa/lib.rs
Expand Up @@ -3,7 +3,6 @@
#![feature(box_patterns)]
#![feature(box_syntax)]
#![feature(core_intrinsics)]
#![feature(custom_attribute)]
#![feature(libc)]
#![feature(rustc_diagnostic_macros)]
#![feature(stmt_expr_attributes)]
Expand Down
1 change: 0 additions & 1 deletion src/librustc_codegen_utils/lib.rs
Expand Up @@ -8,7 +8,6 @@
#![feature(box_patterns)]
#![feature(box_syntax)]
#![feature(core_intrinsics)]
#![feature(custom_attribute)]
#![feature(never_type)]
#![feature(nll)]
#![allow(unused_attributes)]
Expand Down
1 change: 0 additions & 1 deletion src/librustc_errors/lib.rs
@@ -1,6 +1,5 @@
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]

#![feature(custom_attribute)]
#![allow(unused_attributes)]
#![cfg_attr(unix, feature(libc))]
#![feature(nll)]
Expand Down
1 change: 0 additions & 1 deletion src/librustc_save_analysis/lib.rs
@@ -1,5 +1,4 @@
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
#![feature(custom_attribute)]
#![feature(nll)]
#![deny(rust_2018_idioms)]
#![deny(internal)]
Expand Down
1 change: 0 additions & 1 deletion src/libsyntax_pos/lib.rs
Expand Up @@ -11,7 +11,6 @@

#![feature(const_fn)]
#![feature(crate_visibility_modifier)]
#![feature(custom_attribute)]
#![feature(nll)]
#![feature(non_exhaustive)]
#![feature(optin_builtin_traits)]
Expand Down
3 changes: 0 additions & 3 deletions src/libterm/lib.rs
Expand Up @@ -38,9 +38,6 @@
#![deny(rust_2018_idioms)]

#![cfg_attr(windows, feature(libc))]
// Handle rustfmt skips
#![feature(custom_attribute)]
#![allow(unused_attributes)]

use std::io::prelude::*;
use std::io::{self, Stdout, Stderr};
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/check-static-recursion-foreign.rs
Expand Up @@ -6,7 +6,7 @@

// pretty-expanded FIXME #23616

#![feature(custom_attribute, rustc_private)]
#![feature(rustc_private)]

extern crate check_static_recursion_foreign_helper;
extern crate libc;
Expand Down
1 change: 0 additions & 1 deletion src/test/run-pass/macros/macro-attributes.rs
@@ -1,5 +1,4 @@
// run-pass
#![feature(custom_attribute)]

macro_rules! compiles_fine {
(#[$at:meta]) => {
Expand Down
2 changes: 0 additions & 2 deletions src/test/ui/attr-eq-token-tree.rs
@@ -1,4 +1,2 @@
#![feature(custom_attribute)]

#[my_attr = !] //~ ERROR unexpected token: `!`
fn main() {}
2 changes: 1 addition & 1 deletion src/test/ui/attr-eq-token-tree.stderr
@@ -1,5 +1,5 @@
error: unexpected token: `!`
--> $DIR/attr-eq-token-tree.rs:3:13
--> $DIR/attr-eq-token-tree.rs:1:13
|
LL | #[my_attr = !]
| ^
Expand Down
2 changes: 0 additions & 2 deletions src/test/ui/custom-attribute-multisegment.rs
@@ -1,7 +1,5 @@
// Unresolved multi-segment attributes are not treated as custom.

#![feature(custom_attribute)]

mod existent {}

#[existent::nonexistent] //~ ERROR failed to resolve: could not find `nonexistent` in `existent`
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/custom-attribute-multisegment.stderr
@@ -1,5 +1,5 @@
error[E0433]: failed to resolve: could not find `nonexistent` in `existent`
--> $DIR/custom-attribute-multisegment.rs:7:13
--> $DIR/custom-attribute-multisegment.rs:5:13
|
LL | #[existent::nonexistent]
| ^^^^^^^^^^^ could not find `nonexistent` in `existent`
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/expanded-cfg.rs
@@ -1,6 +1,6 @@
// skip-codegen
// compile-pass
#![feature(custom_attribute)]

macro_rules! mac {
{} => {
#[cfg(attr)]
Expand Down

0 comments on commit 8049e61

Please sign in to comment.