1
Fork 0

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:
Manish Goregaokar 2015-03-19 06:09:56 +05:30
commit f5c61a7899

View file

@ -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 */ }) }
}