Rollup merge of #23496 - steveklabnik:gh22309, r=nikomatsakis
Fixes #22309 I am pretty sure that this is the right way to do this, given the other macros, but I'm not 100% sure.
This commit is contained in:
commit
f5c61a7899
1 changed files with 14 additions and 0 deletions
|
@ -404,4 +404,18 @@ pub mod builtin {
|
|||
/// ```
|
||||
#[macro_export]
|
||||
macro_rules! cfg { ($cfg:tt) => ({ /* compiler built-in */ }) }
|
||||
|
||||
/// Parse the current given file as an expression.
|
||||
///
|
||||
/// This is generally a bad idea, because it's going to behave unhygenically.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```ignore
|
||||
/// fn foo() {
|
||||
/// include!("/path/to/a/file")
|
||||
/// }
|
||||
/// ```
|
||||
#[macro_export]
|
||||
macro_rules! include { ($cfg:tt) => ({ /* compiler built-in */ }) }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue