about summary refs log tree commit diff
path: root/src/libstd/process.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-07-30 08:53:22 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-08-04 14:02:36 -0700
commit0d8340327c03f319b49cb91e2e64aa66dd1e76c7 (patch)
tree308af0af76da6c6a020ee5e8d9e5dbb40152307a /src/libstd/process.rs
parent5cccf3cd256420d9f32c265e83036dea1d5f94d8 (diff)
downloadrust-0d8340327c03f319b49cb91e2e64aa66dd1e76c7.tar.gz
rust-0d8340327c03f319b49cb91e2e64aa66dd1e76c7.zip
syntax: Don't assume `std` exists for tests
This commit removes the injection of `std::env::args()` from `--test` expanded
code, relying on the test runner itself to call this funciton. This is more
hygienic because we can't assume that `std` exists at the top layer all the
time, and it meaks the injected test module entirely self contained.
Diffstat (limited to 'src/libstd/process.rs')
-rw-r--r--src/libstd/process.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/process.rs b/src/libstd/process.rs
index 74a66558627..be921d9aef0 100644
--- a/src/libstd/process.rs
+++ b/src/libstd/process.rs
@@ -815,7 +815,7 @@ mod tests {
     #[cfg(target_os="android")]
     #[test]
     fn test_inherit_env() {
-        use std::env;
+        use env;
 
         let mut result = env_cmd().output().unwrap();
         let output = String::from_utf8(result.stdout).unwrap();