Skip to content

Commit

Permalink
Switch from doc(include) to doc = include_str!
Browse files Browse the repository at this point in the history
I plan to deprecate `doc(include)` in the near future, and
rust-lang/rust denies warnings in CI.
  • Loading branch information
jyn514 committed Feb 25, 2021
1 parent 216009f commit 6f3787a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions crates/core_arch/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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)]
Expand Down Expand Up @@ -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))]
Expand Down
2 changes: 1 addition & 1 deletion crates/core_arch/src/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6f3787a

Please sign in to comment.