File tree Expand file tree Collapse file tree 9 files changed +6
-15
lines changed Expand file tree Collapse file tree 9 files changed +6
-15
lines changed Original file line number Diff line number Diff line change 22name = " assert-instr-macro"
33version = " 0.1.0"
44authors = [" Alex Crichton <alex@alexcrichton.com>" ]
5+ edition = " 2018"
56
67[lib ]
78proc-macro = true
Original file line number Diff line number Diff line change 88//! `#[test]` function to the original token stream which asserts that the
99//! function itself contains the relevant instruction.
1010
11- extern crate proc_macro;
12- extern crate proc_macro2;
1311#[ macro_use]
1412extern crate quote;
15- extern crate syn;
1613
1714use proc_macro2:: TokenStream ;
1815use quote:: ToTokens ;
Original file line number Diff line number Diff line change @@ -68,9 +68,6 @@ extern crate std;
6868#[ cfg( test) ]
6969#[ macro_use]
7070extern crate std_detect;
71- #[ cfg( test) ]
72- extern crate stdarch_test;
73-
7471#[ path = "mod.rs" ]
7572mod core_arch;
7673
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ use crate::core_arch::x86::__m256i;
99use crate :: core_arch:: x86:: __m512i;
1010
1111#[ cfg( test) ]
12- use crate :: stdarch_test:: assert_instr;
12+ use stdarch_test:: assert_instr;
1313
1414#[ allow( improper_ctypes) ]
1515extern "C" {
Original file line number Diff line number Diff line change 88use crate :: core_arch:: x86:: __m128i;
99
1010#[ cfg( test) ]
11- use crate :: stdarch_test:: assert_instr;
11+ use stdarch_test:: assert_instr;
1212
1313#[ allow( improper_ctypes) ]
1414extern "C" {
Original file line number Diff line number Diff line change 22name = " simd-test-macro"
33version = " 0.1.0"
44authors = [" Alex Crichton <alex@alexcrichton.com>" ]
5+ edition = " 2018"
56
67[lib ]
78proc-macro = true
Original file line number Diff line number Diff line change 33//! This macro expands to a `#[test]` function which tests the local machine
44//! for the appropriate cfg before calling the inner test function.
55
6- extern crate proc_macro;
7- extern crate proc_macro2;
86#[ macro_use]
97extern crate quote;
108
Original file line number Diff line number Diff line change 22name = " stdarch-test"
33version = " 0.1.0"
44authors = [" Alex Crichton <alex@alexcrichton.com>" ]
5+ edition = " 2018"
56
67[dependencies ]
78assert-instr-macro = { path = " ../assert-instr-macro" }
Original file line number Diff line number Diff line change 66#![ feature( test) ] // For black_box
77#![ allow( clippy:: missing_docs_in_private_items, clippy:: print_stdout) ]
88
9- extern crate assert_instr_macro;
10- extern crate cc;
119#[ macro_use]
1210extern crate lazy_static;
13- extern crate rustc_demangle;
14- extern crate simd_test_macro;
1511#[ macro_use]
1612extern crate cfg_if;
1713
@@ -25,7 +21,7 @@ cfg_if! {
2521 use wasm:: disassemble_myself;
2622 } else {
2723 mod disassembly;
28- use disassembly:: disassemble_myself;
24+ use crate :: disassembly:: disassemble_myself;
2925 }
3026}
3127
You can’t perform that action at this time.
0 commit comments