diff options
| author | varkor <github@varkor.com> | 2018-08-06 16:46:08 +0100 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2018-08-06 16:46:08 +0100 |
| commit | 4687476470d383fefe62ac9cde4e6f9015ba550f (patch) | |
| tree | 5df74cec9cc116230180ebf55433a018a95134fe | |
| parent | 7e7622a714a544225f7051ecaef4a86d1ee84347 (diff) | |
Special-case "test" feature
| -rw-r--r-- | src/librustc/middle/stability.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/librustc/middle/stability.rs b/src/librustc/middle/stability.rs index 7fd788ff2ea..0aa532fd9a4 100644 --- a/src/librustc/middle/stability.rs +++ b/src/librustc/middle/stability.rs @@ -838,8 +838,12 @@ pub fn check_unused_or_stable_features<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>) { } // `stdbuild` has special handling for `libc`, so we need to // recognise the feature when building std. + // Likewise, libtest is handled specially, so `test` isn't + // available as we'd like it to be. // FIXME: only remove `libc` when `stdbuild` is active. + // FIXME: remove special casing for `test`. remaining_lib_features.remove(&Symbol::intern("libc")); + remaining_lib_features.remove(&Symbol::intern("test")); for (feature, stable) in tcx.lib_features().to_vec() { if let Some(since) = stable { |
