diff options
| author | christopherdumas <christopherdumas@gmail.com> | 2016-09-11 14:42:22 -0700 |
|---|---|---|
| committer | christopherdumas <christopherdumas@gmail.com> | 2016-09-12 05:58:37 -0700 |
| commit | 3660a790fbfeaadde80e0846b91005465f384b1e (patch) | |
| tree | b655fe94e92782898ba4e02de78e470784e5ff24 /src/libstd/macros.rs | |
| parent | 923bac45964940c56ab1075fb7980896de1eb620 (diff) | |
| download | rust-3660a790fbfeaadde80e0846b91005465f384b1e.tar.gz rust-3660a790fbfeaadde80e0846b91005465f384b1e.zip | |
Fixed issue #36387
Diffstat (limited to 'src/libstd/macros.rs')
| -rw-r--r-- | src/libstd/macros.rs | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index 6f0f6ecab5b..13083c71dd3 100644 --- a/src/libstd/macros.rs +++ b/src/libstd/macros.rs @@ -444,9 +444,16 @@ 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 unhygienically. + /// Parse the file provided in the argument as an expression or an + /// item according to the context. This file is located relative + /// to the current file (similarly to how modules are found). + /// + /// Using this macro is often a bad idea, because if the file is + /// parsed as an expression, it is going to be placed in the + /// surrounding code unhygenically. This could result in variables + /// or functions being different from what the file expected if + /// there are variables or functions that have the same name in + /// the current file. /// /// # Examples /// |
