Skip to content

Commit 3c36643

Browse files
authored
Remove cfg(not(doc)) from doctests (#922)
This was changed from `cfg(dox)` to `cfg(doc)` in #920. `cfg(doc)` is incorrect here; rustdoc sets `cfg(doctest)`, not `cfg(doc)` in doc-tests. However, this piece of code isn't needed anyway: this code will only ever be run as a doc-test, so it will never be compiled in.
1 parent 5dd309d commit 3c36643

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

crates/core_arch/src/core_arch_docs.md

-6
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,6 @@ using LLVM's auto-vectorization to produce optimized vectorized code for
210210
AVX2 and also for the default platform.
211211

212212
```rust
213-
# #![cfg_attr(not(doc),feature(stdsimd))]
214-
# #[allow(unused_imports)]
215-
# #[cfg(not(doc))]
216-
# #[macro_use(is_x86_feature_detected)]
217-
# extern crate std_detect;
218-
219213
fn main() {
220214
let mut dst = [0];
221215
add_quickly(&[1], &[2], &mut dst);

0 commit comments

Comments
 (0)