-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
serde no longer builds with latest rustc (master) #62562
Comments
This is #62393 almost certainly. @petrochenkov plans to investigate. |
Minimized and reproduced. #62393 broke something unexpected - macro encoding in metadata, which is also done through pretty-printing at the moment (note that this is not a proper way to encode macro definitions, we don't have cross-crate hygiene due to this). Nested macros in particular become broken in metadata: macro_rules! generate_exported { () => {
#[macro_export]
macro_rules! exported {
() => ($crate::S)
}
}}
generate_exported!(); I still need to investigate why exactly this happens though, printing for metadata is done by |
Fixed in #62574. |
Can we get an update? |
It will take a day or two for the bug to be fixed in nightly. I would recommend using an older nightly for now; nightly-2019-07-10 or older should work. |
serde-rs/serde#1568 actually, one more day before that, nightly-2019-07-09 |
nightly-2019-07-10 does work. The version reported by the compiler binary is off by one. The first broken nightly is nightly-2019-07-11 which contains "rustc 1.38.0-nightly (cd2cd4c 2019-07-10)". |
Ah, okay, my bad. |
pretty-print: Do not lose the `$crate` printing flag in `print_tt` #62393 had this accidental mistake. Fixes #62562 r? @Mark-Simulacrum
triage: P-high, has PR (#62574), assigning to @petrochenkov and removing nomination. |
This branch is based before rust-lang#62574, so that rust-lang#62562 can be reproduced. This should succeed when merged into `master`.
Pin nightly to avoid regression rust-lang/rust#62562
Pinning for visibility until a new nightly is out. |
Looks like something that landed in the commit range 0b680cf...d4e1565 broke building serde:
I would try to reproduce locally but
rustup-toolchain-install-master
takes many hours to download rustc+libstd currently. (This bug is not yet on nightly, just in master.)Here's a prior succeeding build for reference.
The text was updated successfully, but these errors were encountered: