Fix compile on latest nightly (#527)

The `proc_macro` feature has stabilized in the compiler and usage of it largely
needs to switch to `use_extern_macros` now.
This commit is contained in:
Alex Crichton
2018-07-17 09:30:18 -05:00
committed by GitHub
parent d89dc542ec
commit f3cb25b8f9
6 changed files with 3 additions and 9 deletions

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,5 +1,3 @@
#![feature(proc_macro)]
extern crate proc_macro;
extern crate proc_macro2;
#[macro_use]

View File

@@ -1,4 +1,4 @@
#![feature(proc_macro)]
#![feature(use_extern_macros)]
#![allow(bad_style)]
#![cfg_attr(
feature = "cargo-clippy",