libsyntax: Unconfigure tests during normal build

This commit is contained in:
Vadim Petrochenkov 2019-08-02 00:26:40 +03:00
parent a332e224a3
commit 310b9fc760
22 changed files with 1277 additions and 1303 deletions

View file

@ -27,6 +27,9 @@ use std::fmt;
pub use rustc_target::abi::FloatTy;
#[cfg(test)]
mod tests;
#[derive(Clone, RustcEncodable, RustcDecodable, Copy)]
pub struct Label {
pub ident: Ident,
@ -2432,15 +2435,3 @@ impl ForeignItemKind {
}
}
}
#[cfg(test)]
mod tests {
use super::*;
// Are ASTs encodable?
#[test]
fn check_asts_encodable() {
fn assert_encodable<T: rustc_serialize::Encodable>() {}
assert_encodable::<Crate>();
}
}