mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-01 02:58:24 +00:00
Rustdoc forwards -Zcrate-attr=feature(rustdoc_internals) to doc tests, but deny(warnings) overrides the -Ainternal_features.
25 lines
649 B
Rust
25 lines
649 B
Rust
//! Support code for encoding and decoding types.
|
|
|
|
// tidy-alphabetical-start
|
|
#![allow(internal_features)]
|
|
#![allow(rustc::internal)]
|
|
#![cfg_attr(test, feature(test))]
|
|
#![doc(test(attr(allow(unused_variables), deny(warnings), allow(internal_features))))]
|
|
#![feature(core_intrinsics)]
|
|
#![feature(min_specialization)]
|
|
#![feature(never_type)]
|
|
#![feature(sized_hierarchy)]
|
|
// 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;
|
|
|
|
pub mod int_overflow;
|
|
pub mod leb128;
|
|
pub mod opaque;
|