librustc: Unconfigure tests during normal build

This commit is contained in:
Vadim Petrochenkov 2019-08-01 03:35:26 +03:00
parent 42c5473d00
commit ca0ef0fcf6
5 changed files with 33 additions and 27 deletions

13
src/librustc/tests.rs Normal file
View file

@ -0,0 +1,13 @@
use super::*;
// FIXME(#27438): right now the unit tests of librustc don't refer to any actual
// functions generated in librustc_data_structures (all
// references are through generic functions), but statics are
// referenced from time to time. Due to this bug we won't
// actually correctly link in the statics unless we also
// reference a function, so be sure to reference a dummy
// function.
#[test]
fn noop() {
rustc_data_structures::__noop_fix_for_27438();
}