From ffff7ff8a6e0a54443e5bef3eb3c8f4b7aeaf1c6 Mon Sep 17 00:00:00 2001 From: hyd-dev Date: Thu, 27 May 2021 19:22:42 +0800 Subject: [PATCH] Use `compile_error!` instead of `use num_cpus` --- test-cargo-miri/subcrate/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-cargo-miri/subcrate/src/lib.rs b/test-cargo-miri/subcrate/src/lib.rs index 07ed1acb7a05..2ccb6704b05e 100644 --- a/test-cargo-miri/subcrate/src/lib.rs +++ b/test-cargo-miri/subcrate/src/lib.rs @@ -1,5 +1,5 @@ #[cfg(doctest)] -use num_cpus as _; +compile_error!("rustdoc should not touch me"); #[cfg(test)] compile_error!("Miri should not touch me");