libsyntax: Unconfigure tests during normal build
This commit is contained in:
parent
a332e224a3
commit
310b9fc760
22 changed files with 1277 additions and 1303 deletions
|
|
@ -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>();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue