Uh oh!
There was an error while loading. Please reload this page.
suggest doubling recursion limit in more situations - #39655
Conversation
There was a problem hiding this comment.
This duplicate error shouldn't be here and yet it is. cc #38940@jseyfried
fbaef50 to
422b789Compare422b789 to
b4993ecComparedurka
commented
Feb 28, 2017
r? |
| ei.callee.name())); | ||
| err.note(&format!( | ||
| "consider adding a `#![recursion_limit=\"{}\"]` attribute to your crate", | ||
| suggested_limit)); |
There was a problem hiding this comment.
Can this be .help() too or is there a reason it can't?
There was a problem hiding this comment.
This will need update to help I think
Thanks. I'll |
eddyb
commented
Feb 28, 2017
80cd3cf to
e1773cbCompareThere was a problem hiding this comment.
maybe we should factor this code into some sort of helper?
There was a problem hiding this comment.
I feel like it'd also be nice to make this into an error code ("recursion limit reached") with a note giving the specific details. That way, we could give an extended error description.
There was a problem hiding this comment.
Where should I put the helper and diagnostic code? Note that the PR is split across libsyntax and librustc_typeck.
There was a problem hiding this comment.
Hmm. Can we only put diagnostic codes into rustc crates? I'm not sure.
There was a problem hiding this comment.
There are diagnostic codes in libsyntax. Can I define it there and use the same one from librustc_typeck?
There was a problem hiding this comment.
Meh. I think we should improve this, but it's not that big a deal.
nikomatsakis
commented
Mar 1, 2017
@bors r+ |
bors
commented
Mar 1, 2017
📌 Commit e1773cb has been approved by |
bors
commented
Mar 2, 2017
⌛ Testing commit e1773cb with merge f46ed40... |
bors
commented
Mar 2, 2017
💔 Test failed - status-appveyor |
e1773cb to
6e259dcComparedurka
commented
Mar 2, 2017
Should be fixed. |
bluss
commented
Mar 2, 2017
@bors r=nikomatsakis |
bors
commented
Mar 2, 2017
📌 Commit 6e259dc has been approved by |
bors
commented
Mar 2, 2017
⌛ Testing commit 6e259dc with merge 907f26d... |
…=nikomatsakis suggest doubling recursion limit in more situations Fixesrust-lang#38852. r? @bluss
frewsxcv
commented
Mar 2, 2017
@bors retry |
bors
commented
Mar 2, 2017
bors
commented
Mar 2, 2017
☀️ Test successful - status-appveyor, status-travis |
Fixes#38852.
r? @bluss