Closed
Description
It used to be that when you reach the macro recursion limit, rustc would recommend raising it and give the attribute to do so. This has been lost.
Expected Result:
Diagnostic tells how to increase recursion limit.
Actual Result:
No note/help.
Reproduce (playground gist)
macro_rules! recurse {
() => { };
($t:tt $($tail:tt)*) => { recurse!($($tail)*) };
}
fn main() {
recurse!(0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9);
}
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
bluss commentedon Jan 5, 2017
rust.godbolt.org doesn't show the help to raise the limit for historical Rust release, maybe I am mistaken that this is a regression.
durka commentedon Jan 5, 2017
There surely was a situation in which you could get the suggestion, and it won't regress because there is a test. But maybe it never showed up for macro evaluation?
durka commentedon Jan 5, 2017
I can work on this.
Rollup merge of rust-lang#39655 - durka:recursion-limit-suggestion, r…
Auto merge of #39655 - durka:recursion-limit-suggestion, r=nikomatsakis