std: Read HOME instead of USER

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:
Alex Crichton 2014-06-09 12:44:45 -07:00
parent e55f64f997
commit a7872b3c1e

View File

@ -425,8 +425,8 @@ macro_rules! format_args( ($closure:expr, $fmt:expr $($args:tt)*) => ({
/// # 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 */ }) )