mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
auto merge of #14775 : alexcrichton/rust/fix-master, r=brson
Apparently one of the linux bots doesn't have the USER variable defined, and this fix will likely land more quickly than a fix to the bots.
This commit is contained in:
commit
b6146e652a
@ -425,8 +425,8 @@ pub mod builtin {
|
||||
/// # Example
|
||||
///
|
||||
/// ```rust
|
||||
/// let user: &'static str = env!("USER");
|
||||
/// println!("the user who compiled this code is: {}", user);
|
||||
/// let home: &'static str = env!("HOME");
|
||||
/// println!("the home directory at the time of compiling was: {}", home);
|
||||
/// ```
|
||||
#[macro_export]
|
||||
macro_rules! env( ($name:expr) => ({ /* compiler built-in */ }) )
|
||||
|
Loading…
Reference in New Issue
Block a user