Skip to content

Commit

Permalink
Fix compile on latest nightly (rust-lang#527)
Browse files Browse the repository at this point in the history
The `proc_macro` feature has stabilized in the compiler and usage of it largely
needs to switch to `use_extern_macros` now.
  • Loading branch information
alexcrichton authored Jul 17, 2018
1 parent e0d129c commit 85208cf
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 9 deletions.
2 changes: 0 additions & 2 deletions crates/assert-instr-macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
//! `#[test]` function to the original token stream which asserts that the
//! function itself contains the relevant instruction.
#![feature(proc_macro)]

extern crate proc_macro;
extern crate proc_macro2;
#[macro_use]
Expand Down
2 changes: 1 addition & 1 deletion crates/coresimd/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
)]
#![cfg_attr(
test,
feature(proc_macro, test, attr_literals, abi_vectorcall, untagged_unions)
feature(use_extern_macros, test, attr_literals, abi_vectorcall, untagged_unions)
)]
#![cfg_attr(
feature = "cargo-clippy",
Expand Down
2 changes: 0 additions & 2 deletions crates/simd-test-macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
//! This macro expands to a `#[test]` function which tests the local machine
//! for the appropriate cfg before calling the inner test function.
#![feature(proc_macro)]

extern crate proc_macro;
extern crate proc_macro2;
#[macro_use]
Expand Down
2 changes: 1 addition & 1 deletion crates/stdsimd-test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//! output once globally and then provides the `assert` function which makes
//! assertions about the disassembly of a function.
#![feature(proc_macro)]
#![feature(use_extern_macros)]
#![cfg_attr(
feature = "cargo-clippy",
allow(missing_docs_in_private_items, print_stdout)
Expand Down
2 changes: 0 additions & 2 deletions crates/stdsimd-verify/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![feature(proc_macro)]

extern crate proc_macro;
extern crate proc_macro2;
#[macro_use]
Expand Down
2 changes: 1 addition & 1 deletion crates/stdsimd-verify/tests/x86-intel.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![feature(proc_macro)]
#![feature(use_extern_macros)]
#![allow(bad_style)]
#![cfg_attr(
feature = "cargo-clippy",
Expand Down

0 comments on commit 85208cf

Please sign in to comment.