Convert rustc_serialize integration tests to unit tests.

Because (a) the vast majority of compiler tests are unit tests, and (b)
this works better with `unused_crate_dependencies`.
This commit is contained in:
Nicholas Nethercote
2025-03-03 19:40:00 +11:00
parent 8121958fda
commit e2320b32c5
5 changed files with 16 additions and 14 deletions

View File

@@ -3,8 +3,6 @@
// tidy-alphabetical-start
#![allow(internal_features)]
#![allow(rustc::internal)]
// FIXME
#![allow(unused_crate_dependencies)]
#![cfg_attr(test, feature(test))]
#![doc(
html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/",
@@ -18,6 +16,10 @@
#![feature(rustdoc_internals)]
// tidy-alphabetical-end
// Allows macros to refer to this crate as `::rustc_serialize`.
#[cfg(test)]
extern crate self as rustc_serialize;
pub use self::serialize::{Decodable, Decoder, Encodable, Encoder};
mod serialize;