Skip to content

Commit 4687476

Browse files
committed
Special-case "test" feature
1 parent 7e7622a commit 4687476

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/librustc/middle/stability.rs

+4
Original file line numberDiff line numberDiff line change
@@ -838,8 +838,12 @@ pub fn check_unused_or_stable_features<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>) {
838838
}
839839
// `stdbuild` has special handling for `libc`, so we need to
840840
// recognise the feature when building std.
841+
// Likewise, libtest is handled specially, so `test` isn't
842+
// available as we'd like it to be.
841843
// FIXME: only remove `libc` when `stdbuild` is active.
844+
// FIXME: remove special casing for `test`.
842845
remaining_lib_features.remove(&Symbol::intern("libc"));
846+
remaining_lib_features.remove(&Symbol::intern("test"));
843847

844848
for (feature, stable) in tcx.lib_features().to_vec() {
845849
if let Some(since) = stable {

0 commit comments

Comments
 (0)