-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints
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
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints