diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-08-02 01:58:40 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-08-02 02:40:01 +0300 |
| commit | 62ec2cb7acb1b16d0abd8a2cf40da545a13d29f3 (patch) | |
| tree | 7692fc594e177ae978e2b3951600e8a0edc41a65 /src/bootstrap | |
| parent | 3d0d6ee271a34d2329235b9a04cf4a421d9026cd (diff) | |
| download | rust-62ec2cb7acb1b16d0abd8a2cf40da545a13d29f3.tar.gz rust-62ec2cb7acb1b16d0abd8a2cf40da545a13d29f3.zip | |
Remove some more `cfg(test)`s
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>()) } |
