-
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
Failed to compile ring under nightly Rust (1.61.0, 9f4dc0b4d 2022-03-23) #95267
Comments
That post is written by me. |
1.61.0-nightly (5f37001 2022-03-22) works so this is a very recent nightly regression. |
I see that too when compiling maturin |
same issue on ubuntu20 |
Maybe related to this issue. #[rustfmt::skip]
macro_rules! f {
(
/// ab
) => {};
}
fn main() {
f!();
} Pass with rustc 1.61.0-nightly (5f37001 2022-03-22), you can try this snippet via
Failed with rustc 1.61.0-nightly (9f4dc0b 2022-03-23), you can try this snippet via
error: unexpected end of macro invocation
--> src/main.rs:9:5
|
2 | macro_rules! f {
| -------------- when calling this macro
...
9 | f!();
| ^^^^ missing tokens in macro arguments Surprisingly, the code can be expanded on playground with: |
The piece of code looks surprising, but bisection lead to #95159 |
Thanks for the report. Should be an easy fix, I will get to it on Monday. |
I think 10644e0 is right to some extent. #[rustfmt::skip]
macro_rules! f {
(
/// doc
) => { println!("/// doc"); };
(#[$m:meta]) => { println!("#[$m:meta]"); };
() => { println!("()"); };
}
fn main() {
f!(
/// doc
);
f!();
} With rustc 1.61.0-nightly (5f37001 2022-03-22) or other versions before, the result is:
With rustc 1.61.0-nightly (9f4dc0b 2022-03-23), the result is:
|
Note that the playground's nightly is a few days old and cannot be upgraded because of how this issue affects ring ;-) |
Temporary fix until the `ring` build issue is fixed. - briansmith/ring#1469 - rust-lang/rust#95267
Temporary fix until the `ring` build issue is fixed. - briansmith/ring#1469 - rust-lang/rust#95267
Assigning priority as discussed in the Zulip thread of the Prioritization Working Group. @rustbot label -I-prioritize +P-critical |
That's an interesting observation! But I'm not a language expert and I never intended to change behaviour in #95159, so I will fix this problem by going back to the old behaviour. |
…acros, r=petrochenkov Ignore doc comments in a declarative macro matcher. Fixes rust-lang#95267. Reverts to the old behaviour before rust-lang#95159 introduced a regression. r? `@petrochenkov`
Cross post from briansmith/ring#1469
Works fine on stable Rust.
https://github.com/briansmith/ring/blob/9cc0d45f4d8521f467bb3a621e74b1535e118188/src/cpu.rs#L165-L224
The text was updated successfully, but these errors were encountered: