-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Regression: some macro invocations no longer work in Nightly. #76482
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
Comments
Repro lives here: https://github.com/emilio/rustc-issue-76482 |
This is caused by an outdated version of |
Yes, I mentioned that above:
Still seems weird for it to regress like that... |
… Rust nightly again. r=froydnj Generated with: cargo update -p syn --precise 1.0.40 ./mach vendor rust Rust issue: rust-lang/rust#76482 Differential Revision: https://phabricator.services.mozilla.com/D89473
To be clear, I'm a bit disappointed at breaking changes without even a warning cycle, but so it is I guess. |
@emilio: Unfortunately, the nature of this change makes emitting a warning impossible. The error is emitted by a proc macro, which is a black box as far as rustc is concerned. The only way to know if a proc-macro will produce an error is to run it, and the only way to 'recovery' or 'downgrade' such an error would be to run the proc-macro again with a different |
… Rust nightly again. r=froydnj Generated with: cargo update -p syn --precise 1.0.40 ./mach vendor rust Rust issue: rust-lang/rust#76482 Differential Revision: https://phabricator.services.mozilla.com/D89473 UltraBlame original commit: e2cede25c027940ca4b36917a31163c278a4411f
… Rust nightly again. r=froydnj Generated with: cargo update -p syn --precise 1.0.40 ./mach vendor rust Rust issue: rust-lang/rust#76482 Differential Revision: https://phabricator.services.mozilla.com/D89473 UltraBlame original commit: e2cede25c027940ca4b36917a31163c278a4411f
… Rust nightly again. r=froydnj Generated with: cargo update -p syn --precise 1.0.40 ./mach vendor rust Rust issue: rust-lang/rust#76482 Differential Revision: https://phabricator.services.mozilla.com/D89473 UltraBlame original commit: e2cede25c027940ca4b36917a31163c278a4411f
… Rust nightly again. r=froydnj, a=RyanVM Generated with: cargo update -p syn --precise 1.0.40 ./mach vendor rust Rust issue: rust-lang/rust#76482 Differential Revision: https://phabricator.services.mozilla.com/D89473
… Rust nightly again. r=froydnj Generated with: cargo update -p syn --precise 1.0.40 ./mach vendor rust Rust issue: rust-lang/rust#76482 Differential Revision: https://phabricator.services.mozilla.com/D89473
… Rust nightly again. r=froydnj, a=RyanVM Generated with: cargo update -p syn --precise 1.0.40 ./mach vendor rust Rust issue: rust-lang/rust#76482 Differential Revision: https://phabricator.services.mozilla.com/D89473 Gbp-Pq: Topic fixes Gbp-Pq: Name Bug-1663715-Update-syn-and-proc-macro2-so-that-Firef.patch
… Rust nightly again. r=froydnj, a=RyanVM Generated with: cargo update -p syn --precise 1.0.40 ./mach vendor rust Rust issue: rust-lang/rust#76482 Differential Revision: https://phabricator.services.mozilla.com/D89473
… Rust nightly again. r=froydnj, a=RyanVM Generated with: cargo update -p syn --precise 1.0.40 ./mach vendor rust Rust issue: rust-lang/rust#76482 Differential Revision: https://phabricator.services.mozilla.com/D89473
… Rust nightly again. r=froydnj, a=RyanVM Generated with: cargo update -p syn --precise 1.0.40 ./mach vendor rust Rust issue: rust-lang/rust#76482 Differential Revision: https://phabricator.services.mozilla.com/D89473
… Rust nightly again. r=froydnj Generated with: cargo update -p syn --precise 1.0.40 ./mach vendor rust Rust issue: rust-lang/rust#76482 Differential Revision: https://phabricator.services.mozilla.com/D89473
This is a regression which also affects Firefox, though it can be worked around by updating the syn crate.
I'll post a repro in a bit. The repro builds with stable rust (
rustc 1.46.0 (04488afe3 2020-08-24)
) and fails to build with nightly rust (rustc 1.48.0-nightly (0e2c1281e 2020-09-07)
).The text was updated successfully, but these errors were encountered: