]> git.lizzy.rs Git - rust.git/commit
syntax: Don't assume `std` exists for tests
authorAlex Crichton <alex@alexcrichton.com>
Thu, 30 Jul 2015 15:53:22 +0000 (08:53 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 4 Aug 2015 21:02:36 +0000 (14:02 -0700)
commit0d8340327c03f319b49cb91e2e64aa66dd1e76c7
tree308af0af76da6c6a020ee5e8d9e5dbb40152307a
parent5cccf3cd256420d9f32c265e83036dea1d5f94d8
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.
src/libstd/lib.rs
src/libstd/process.rs
src/libstd/sys/unix/thread.rs
src/libstd/sys/windows/thread.rs
src/libstd/thread/local.rs
src/libsyntax/test.rs
src/libtest/lib.rs