Switch from doc(include) to doc = include_str! (#1013)
I plan to deprecate `doc(include)` in the near future, and rust-lang/rust denies warnings in CI.
This commit is contained in:
parent
2c7d98da90
commit
35eff866a4
2 changed files with 4 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#![doc(include = "core_arch_docs.md")]
|
||||
#![doc = include_str!("core_arch_docs.md")]
|
||||
#![allow(improper_ctypes_definitions)]
|
||||
#![allow(dead_code)]
|
||||
#![allow(unused_features)]
|
||||
|
|
@ -36,7 +36,8 @@
|
|||
f16c_target_feature,
|
||||
external_doc,
|
||||
allow_internal_unstable,
|
||||
decl_macro
|
||||
decl_macro,
|
||||
extended_key_value_attributes
|
||||
)]
|
||||
#![cfg_attr(test, feature(test, abi_vectorcall))]
|
||||
#![cfg_attr(all(test, target_arch = "wasm32"), feature(wasm_simd))]
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ mod acle;
|
|||
|
||||
mod simd;
|
||||
|
||||
#[doc(include = "core_arch_docs.md")]
|
||||
#[doc = include_str!("core_arch_docs.md")]
|
||||
#[stable(feature = "simd_arch", since = "1.27.0")]
|
||||
pub mod arch {
|
||||
/// Platform-specific intrinsics for the `x86` platform.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue