diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-03 19:40:00 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-03-20 08:59:50 +1100 |
| commit | e2320b32c5268913349549fc59972443975ceec4 (patch) | |
| tree | d1525029e50c823b0689d9836911779445318644 /compiler/rustc_serialize/src/lib.rs | |
| parent | 8121958fda43759fa94e3f74f7cdbb595ddcc0e5 (diff) | |
| download | rust-e2320b32c5268913349549fc59972443975ceec4.tar.gz rust-e2320b32c5268913349549fc59972443975ceec4.zip | |
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`.
Diffstat (limited to 'compiler/rustc_serialize/src/lib.rs')
| -rw-r--r-- | compiler/rustc_serialize/src/lib.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/rustc_serialize/src/lib.rs b/compiler/rustc_serialize/src/lib.rs index 8672278d0f1..34be35e36ac 100644 --- a/compiler/rustc_serialize/src/lib.rs +++ b/compiler/rustc_serialize/src/lib.rs @@ -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; |
