Special-case "test" feature

This commit is contained in:
varkor 2018-08-06 16:46:08 +01:00
parent 7e7622a714
commit 4687476470
1 changed files with 4 additions and 0 deletions

View File

@ -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 {