Skip to content

Commit f4326f0

Browse files
committed
Remove std-detect dev dependency in core_arch
1 parent fdb4b91 commit f4326f0

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/core_arch/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ maintenance = { status = "experimental" }
2222

2323
[dev-dependencies]
2424
stdarch-test = { version = "0.*", path = "../stdarch-test" }
25-
std_detect = { version = "0.*", path = "../std_detect" }
25+
#std_detect = { version = "0.*", path = "../std_detect" }
2626

2727
[target.'cfg(all(target_arch = "x86_64", target_os = "linux"))'.dev-dependencies]
2828
syscalls = { version = "0.6.18", default-features = false }

crates/core_arch/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,7 @@
7575
#[cfg(test)]
7676
#[macro_use]
7777
extern crate std;
78-
#[cfg(test)]
79-
#[macro_use]
80-
extern crate std_detect;
78+
8179
#[path = "mod.rs"]
8280
mod core_arch;
8381

crates/simd-test-macro/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ pub fn simd_test(
6666
"s390x" => "is_s390x_feature_detected",
6767
t => panic!("unknown target: {t}"),
6868
};
69-
let macro_test = Ident::new(macro_test, Span::call_site());
69+
let macro_test = format!("::std::arch::{macro_test}");
70+
let macro_test = Ident::new(&macro_test, Span::call_site());
7071

7172
let skipped_functions = env::var("STDARCH_TEST_SKIP_FUNCTION").unwrap_or_default();
7273
let skipped_features = env::var("STDARCH_TEST_SKIP_FEATURE").unwrap_or_default();

0 commit comments

Comments
 (0)