-
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
Increase macro recursion limit to 1024 #41676
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @pnkfelix (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. |
If you add |
r? @jseyfried |
Pinged @jseyfried on IRC for a review. |
@bors r+ |
📌 Commit 3008f53 has been approved by |
…fried Increase macro recursion limit to 1024 Fixes #22552
☀️ Test successful - status-appveyor, status-travis |
Lets the large `record!` macro in primitives work. 1024 was chosen since that will be standard in rustc soon rust-lang/rust#41676
Lets the large `record!` macro in primitives work. 1024 was chosen since that will be standard in rustc soon rust-lang/rust#41676
Lets the large `record!` macro in primitives work. 1024 was chosen since that will be standard in rustc soon rust-lang/rust#41676
The attribute in `schema.rs` didn't seem to do anything. I'm not sure if that is a regression in Rust or an oversight on our part (and the attr wasn't necessary before). Additionally, looking at <rust-lang/rust#41676>, this shouldn't be necessary at all in recent nightlies (after May 7), but without the explicit setting, it fails to compile and suggests adding `#![recursion_limit="128"]`. If I read the code in [1] correctly, this means it was set to 64 before. [1]: https://github.com/rust-lang/rust/blob/5c7add7551fa093f655e76650a48564ac347c83a/src/librustc/traits/error_reporting.rs#L1150-L1156
Lets the large `record!` macro in primitives work. 1024 was chosen since that will be standard in rustc soon rust-lang/rust#41676
The attribute in `schema.rs` didn't seem to do anything. I'm not sure if that is a regression in Rust or an oversight on our part (and the attr wasn't necessary before). Additionally, looking at <rust-lang/rust#41676>, this shouldn't be necessary at all in recent nightlies (after May 7), but without the explicit setting, it fails to compile and suggests adding `#![recursion_limit="128"]`. If I read the code in [1] correctly, this means it was set to 64 before. [1]: https://github.com/rust-lang/rust/blob/5c7add7551fa093f655e76650a48564ac347c83a/src/librustc/traits/error_reporting.rs#L1150-L1156
Has this shipped? I'm still getting errors saying I need to increase the recursion limit to 128 when using the latest nightly |
Fixes #22552