diff options
| author | bors <bors@rust-lang.org> | 2025-07-02 01:41:18 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-07-02 01:41:18 +0000 |
| commit | f51c9870bab634afb9e7a262b6ca7816bb9e940d (patch) | |
| tree | ea1ee88816482eec8f313a550497fc252bdb2230 /compiler/rustc_serialize/src/lib.rs | |
| parent | 085c24790e591948f788fd294ca3f9858313741c (diff) | |
| parent | 5b073e5ba6ce0ee6511bcc39f355c65f1b465986 (diff) | |
| download | rust-f51c9870bab634afb9e7a262b6ca7816bb9e940d.tar.gz rust-f51c9870bab634afb9e7a262b6ca7816bb9e940d.zip | |
Auto merge of #142974 - cuviper:stage0-bump, r=Mark-Simulacrum
Update stage0 to 1.89.0-beta.1 - Update version placeholders - Update stage0 to 1.89.0-beta.1 - Update `STAGE0_MISSING_TARGETS` - Update `cfg(bootstrap)` r? `@Mark-Simulacrum` try-job: dist-i586-gnu-i586-i686-musl
Diffstat (limited to 'compiler/rustc_serialize/src/lib.rs')
| -rw-r--r-- | compiler/rustc_serialize/src/lib.rs | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/compiler/rustc_serialize/src/lib.rs b/compiler/rustc_serialize/src/lib.rs index 656ecfcab36..806d880b19c 100644 --- a/compiler/rustc_serialize/src/lib.rs +++ b/compiler/rustc_serialize/src/lib.rs @@ -3,7 +3,6 @@ // tidy-alphabetical-start #![allow(internal_features)] #![allow(rustc::internal)] -#![cfg_attr(not(bootstrap), feature(sized_hierarchy))] #![cfg_attr(test, feature(test))] #![doc( html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/", @@ -15,6 +14,7 @@ #![feature(min_specialization)] #![feature(never_type)] #![feature(rustdoc_internals)] +#![feature(sized_hierarchy)] // tidy-alphabetical-end // Allows macros to refer to this crate as `::rustc_serialize`. @@ -28,19 +28,3 @@ mod serialize; pub mod int_overflow; pub mod leb128; pub mod opaque; - -// This has nothing to do with `rustc_serialize` but it is convenient to define it in one place -// for the rest of the compiler so that `cfg(bootstrap)` doesn't need to be littered throughout -// the compiler wherever `PointeeSized` would be used. `rustc_serialize` happens to be the deepest -// crate in the crate graph which uses `PointeeSized`. -// -// When bootstrap bumps, remove both the `cfg(not(bootstrap))` and `cfg(bootstrap)` lines below -// and just import `std::marker::PointeeSized` whereever this item was used. - -#[cfg(not(bootstrap))] -pub use std::marker::PointeeSized; - -#[cfg(bootstrap)] -pub trait PointeeSized {} -#[cfg(bootstrap)] -impl<T: ?Sized> PointeeSized for T {} |
