Skip to content

Commit 7aff421

Browse files
committed
Switch from doc(include) to doc = include_str!
I plan to deprecate `doc(include)` in the near future, and rust-lang/rust denies warnings in CI.
1 parent 216009f commit 7aff421

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

crates/core_arch/src/lib.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![doc(include = "core_arch_docs.md")]
1+
#![doc = include_str!("core_arch_docs.md")]
22
#![allow(improper_ctypes_definitions)]
33
#![allow(dead_code)]
44
#![allow(unused_features)]
@@ -36,7 +36,8 @@
3636
f16c_target_feature,
3737
external_doc,
3838
allow_internal_unstable,
39-
decl_macro
39+
decl_macro,
40+
extended_key_value_attributes,
4041
)]
4142
#![cfg_attr(test, feature(test, abi_vectorcall))]
4243
#![cfg_attr(all(test, target_arch = "wasm32"), feature(wasm_simd))]

crates/core_arch/src/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ mod acle;
99

1010
mod simd;
1111

12-
#[doc(include = "core_arch_docs.md")]
12+
#[doc = include_str!("core_arch_docs.md")]
1313
#[stable(feature = "simd_arch", since = "1.27.0")]
1414
pub mod arch {
1515
/// Platform-specific intrinsics for the `x86` platform.

0 commit comments

Comments
 (0)