diff options
| author | bors <bors@rust-lang.org> | 2019-08-02 15:22:50 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-08-02 15:22:50 +0000 |
| commit | cf048cc115860cc110865f460f3f2b9b4308ad92 (patch) | |
| tree | 883bd4b5406aa47155d362bbadfe0b6f3d795793 /src/bootstrap | |
| parent | 1df512fcaeaf17639c5d28a3045814d6f7a7db97 (diff) | |
| parent | 62ec2cb7acb1b16d0abd8a2cf40da545a13d29f3 (diff) | |
| download | rust-cf048cc115860cc110865f460f3f2b9b4308ad92.tar.gz rust-cf048cc115860cc110865f460f3f2b9b4308ad92.zip | |
Auto merge of #63207 - petrochenkov:outest2, r=Mark-Simulacrum
Unconfigure compiler unit test files during normal build I haven't touched libstd though, it had a lot of tests and I'm not sure the people maintaining it want this. Closes https://github.com/rust-lang/rust/issues/61097 r? @Mark-Simulacrum
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/cache.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bootstrap/cache.rs b/src/bootstrap/cache.rs index f137a7b8cc2..53071df8552 100644 --- a/src/bootstrap/cache.rs +++ b/src/bootstrap/cache.rs @@ -266,8 +266,10 @@ impl Cache { .expect("invalid type mapped"); stepcache.get(step).cloned() } +} - #[cfg(test)] +#[cfg(test)] +impl Cache { pub fn all<S: Ord + Copy + Step>(&mut self) -> Vec<(S, S::Output)> { let cache = self.0.get_mut(); let type_id = TypeId::of::<S>(); @@ -279,7 +281,6 @@ impl Cache { v } - #[cfg(test)] pub fn contains<S: Step>(&self) -> bool { self.0.borrow().contains_key(&TypeId::of::<S>()) } |
