File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -444,9 +444,16 @@ pub mod builtin {
444
444
#[ macro_export]
445
445
macro_rules! cfg { ( $( $cfg: tt) * ) => ( { /* compiler built-in */ } ) }
446
446
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.
450
457
///
451
458
/// # Examples
452
459
///
You can’t perform that action at this time.
0 commit comments