Use #[doc = include_str!()] in std
This commit is contained in:
parent
446d4533e8
commit
a6eb836ff0
@ -1,4 +1,4 @@
|
|||||||
#[doc(include = "panic.md")]
|
#[doc = include_str!("panic.md")]
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
#[rustc_builtin_macro = "core_panic"]
|
#[rustc_builtin_macro = "core_panic"]
|
||||||
#[allow_internal_unstable(edition_panic)]
|
#[allow_internal_unstable(edition_panic)]
|
||||||
|
@ -264,7 +264,6 @@
|
|||||||
#![feature(exhaustive_patterns)]
|
#![feature(exhaustive_patterns)]
|
||||||
#![feature(extend_one)]
|
#![feature(extend_one)]
|
||||||
#![feature(extended_key_value_attributes)]
|
#![feature(extended_key_value_attributes)]
|
||||||
#![feature(external_doc)]
|
|
||||||
#![feature(fn_traits)]
|
#![feature(fn_traits)]
|
||||||
#![feature(format_args_nl)]
|
#![feature(format_args_nl)]
|
||||||
#![feature(gen_future)]
|
#![feature(gen_future)]
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
//! library. Each macro is available for use when linking against the standard
|
//! library. Each macro is available for use when linking against the standard
|
||||||
//! library.
|
//! library.
|
||||||
|
|
||||||
#[doc(include = "../../core/src/macros/panic.md")]
|
#[doc = include_str!("../../core/src/macros/panic.md")]
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
#[rustc_builtin_macro = "std_panic"]
|
#[rustc_builtin_macro = "std_panic"]
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
@ -18,7 +18,7 @@ macro_rules! type_alias_no_nz {
|
|||||||
$Docfile:tt, $Alias:ident = $Real:ty;
|
$Docfile:tt, $Alias:ident = $Real:ty;
|
||||||
$( $Cfg:tt )*
|
$( $Cfg:tt )*
|
||||||
} => {
|
} => {
|
||||||
#[doc(include = $Docfile)]
|
#[doc = include_str!($Docfile)]
|
||||||
$( $Cfg )*
|
$( $Cfg )*
|
||||||
#[stable(feature = "raw_os", since = "1.1.0")]
|
#[stable(feature = "raw_os", since = "1.1.0")]
|
||||||
pub type $Alias = $Real;
|
pub type $Alias = $Real;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user