Skip to content

Commit 3660a79

Browse files
Fixed issue #36387
1 parent 923bac4 commit 3660a79

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/libstd/macros.rs

+10-3
Original file line numberDiff line numberDiff line change
@@ -444,9 +444,16 @@ pub mod builtin {
444444
#[macro_export]
445445
macro_rules! cfg { ($($cfg:tt)*) => ({ /* compiler built-in */ }) }
446446

447-
/// Parse the current given file as an expression.
448-
///
449-
/// This is generally a bad idea, because it's going to behave unhygienically.
447+
/// Parse the file provided in the argument as an expression or an
448+
/// item according to the context. This file is located relative
449+
/// to the current file (similarly to how modules are found).
450+
///
451+
/// Using this macro is often a bad idea, because if the file is
452+
/// parsed as an expression, it is going to be placed in the
453+
/// surrounding code unhygenically. This could result in variables
454+
/// or functions being different from what the file expected if
455+
/// there are variables or functions that have the same name in
456+
/// the current file.
450457
///
451458
/// # Examples
452459
///

0 commit comments

Comments
 (0)