-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Make assert! ensure the macro is parsed completely #60039
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
Is there any reason why |
@jonas-schievink |
Thanks @rasendubi! To be double extra sure I think we'll want to run this through crater to ensure we don't break too many crates by accident, so... @bors: try |
⌛ Trying commit dfc0861 with merge 78b0bd8441ef961f6475e3d47fe3bca38cb83432... |
☀️ Try build successful - checks-travis |
@craterbot run start=master#efe2f32a6b8217425f361ec7c206910c611c03ee end=try#78b0bd8441ef961f6475e3d47fe3bca38cb83432 mode=check-only |
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
The crater agent is unreachable for a day now. Is that normal? Last heartbeat: 2019-04-20 06:26:03 UTC |
CC @pietroalbini ^^ |
🚨 Experiment 🆘 Can someone from the infra team check in on this? @rust-lang/infra |
@craterbot retry The Crater machine crashed, now it should work again. |
🛠️ Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🎉 Experiment
|
That looks like an unfortuante amount of breakage :( Given all that I think that the best thing to do might be to switch this to a warning, and then perhaps send some PRs to upstream crates to fix the issues? After awhile we can then switch to an error |
@alexcrichton a significant amount of these (8) seem to be coming from
bluenrg, cargo-generate (and it's transitive error) and b-r-oleary.passwords were a bit more bizarre on first look without context, but looking a bit deeper I see they are similar to I think if we accept trailing On the plus side none of the errors seems to be intentional misuse of the "feature". |
There is a bug in rustc that allows adding invalid trailing tokens to the `assert!` macro call. They are currently ignored but are going to produce errors in the future. Fix assert! macro usage to remove extra tokens. For more information, see rust-lang/rust#60024 and rust-lang/rust#60039
There is a bug in rustc that allows adding invalid trailing tokens to the `assert!` macro call. They are currently ignored but are going to produce errors in the future. Fix assert! macro usage to add missing comma. For more information, see rust-lang/rust#60024 and rust-lang/rust#60039
There is a bug in rustc that allows adding invalid trailing tokens to the `assert!` macro call. They are currently ignored but are going to produce errors in the future. Fix assert! macro usage to remove extra tokens. For more information, see rust-lang/rust#60024 and rust-lang/rust#60039
There is a bug in rustc that allows adding invalid trailing tokens to the `assert!` macro call. They are currently ignored but are going to produce errors in the future. Fix assert! macro usage to remove extra tokens. For more information, see rust-lang/rust#60024 and rust-lang/rust#60039
There is a bug in rustc that allows adding invalid trailing tokens to the `assert!` macro call. They are currently ignored but are going to produce errors in the future. Fix assert! macro usage to add missing comma. For more information, see rust-lang/rust#60024 and rust-lang/rust#60039
There is a bug in rustc that allows adding invalid trailing tokens to the `assert!` macro call. They are currently ignored but are going to produce errors in the future. Fix assert! macro usage to add missing comma. For more information, see rust-lang/rust#60024 and rust-lang/rust#60039
🎉 Experiment
|
The one regression reported by crater does not seem relevant to the change. From logs:
|
@bors: r+ This looks like a great compromise, thanks @rasendubi! |
📌 Commit f29e9a5 has been approved by |
Make assert! ensure the macro is parsed completely Fixes #60024
☀️ Test successful - checks-travis, status-appveyor |
This is my first contribution to rust (besides some minor docs improvements). Thank you guys for all the support! 🎉 |
Fixes #60024