]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/macros.rs
Auto merge of #36825 - sbwtw:master, r=alexcrichton
[rust.git] / src / libstd / macros.rs
index f18f1572ceabec0c6b8d3b277cc55861c0aaf12e..40e5dd6ba1903ef4973f3521cf6edafe39939fc2 100644 (file)
@@ -452,9 +452,16 @@ macro_rules! module_path { () => ({ /* compiler built-in */ }) }
     #[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
     ///