You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't ignore soft destabilization of rustc-serialize with #![allow(soft_unstable)] #123156
error[E0658]: use of unstable library feature 'libstd_sys_internals': used by the panic! macro
--> src/weekday.rs:33:64
|
33 | #[cfg_attr(feature = "rustc-serialize", derive(RustcEncodable, RustcDecodable))]
| ^^^^^^^^^^^^^^
|
= help: add `#![feature(libstd_sys_internals)]` to the crate attributes to enable
= note: this compiler was built on 2024-03-27; consider upgrading it if it is out of date
= note: this error originates in the derive macro `RustcDecodable` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0658]: use of unstable library feature 'libstd_sys_internals': used by the panic! macro
--> src/month.rs:32:64
|
32 | #[cfg_attr(feature = "rustc-serialize", derive(RustcEncodable, RustcDecodable))]
| ^^^^^^^^^^^^^^
|
= help: add `#![feature(libstd_sys_internals)]` to the crate attributes to enable
= note: this compiler was built on 2024-03-27; consider upgrading it if it is out of date
= note: this error originates in the derive macro `RustcDecodable` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0658`.
error: could not compile `chrono` (lib) due to 2 previous errors; 4 warnings emitted
changed the title [-]Can't ignore soft destabilization of `rustc-serialize` with `#![feature(libstd_sys_internals)]`[/-][+]Can't ignore soft destabilization of `rustc-serialize` with `#![allow(soft_unstable)]`[/+]on Mar 28, 2024
The derived Decodable implementation for an enum is using ::std::rt::begin_panic. Manually implementing Decodable and using unreachable!() is a workaround.
I have confirmed this is an issue with the expansion of RustcDecodable on enums and aim to have a PR up tonight. As RustcEncodable is a built-in macro, it is technically in T-compiler land, I believe.
Activity
[-]Can't ignore soft destabilization of `rustc-serialize` with `#![feature(libstd_sys_internals)]`[/-][+]Can't ignore soft destabilization of `rustc-serialize` with `#![allow(soft_unstable)]`[/+]pitdicker commentedon Mar 28, 2024
The derived
Decodableimplementation for an enum is using::std::rt::begin_panic. Manually implementingDecodableand usingunreachable!()is a workaround.apiraino commentedon Mar 28, 2024
WG-prioritization assigning priority (Zulip discussion).
@rustbot label -I-prioritize +P-critical
ehuss commentedon Mar 28, 2024
cc @jhpratt
jhpratt commentedon Mar 28, 2024
I'm actually not sure this is a T-libs issue. I suspect it's related to
#[allow_internal_unstable], but I haven't had a chance to look into it yet.jhpratt commentedon Mar 29, 2024
I have confirmed this is an issue with the expansion of
RustcDecodableonenums and aim to have a PR up tonight. AsRustcEncodableis a built-in macro, it is technically in T-compiler land, I believe.@rustbot claim
jhpratt commentedon Mar 29, 2024
PR is up, including a regression test: #123182
Rollup merge of rust-lang#123182 - jhpratt:fix-decodable-derive, r=da…
Unrolled build for rust-lang#123182