-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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 hitting the recursion limit in projection non-fatal #81055
Conversation
This is relied on by wundergraph.
I wonder if this would help with #79506. |
See also #79517. |
It does not fix #79506, because that gives an error in rust/compiler/rustc_trait_selection/src/traits/select/mod.rs Lines 953 to 960 in 5db5d8f
@matthewjasper should that match be changed too? |
This change already isn't really correct, it's just the safest fix for a backport. For rustdoc it would make sense to move reporting recursion limit errors outside of the trait system, but that's not what this change does (this change incorrectly allows the trait system to recover from recursion limit errors). |
Got it, thanks. Do you have suggestions for moving recursion limit errors out of the trait system? I'd be interested in working on it. |
It's basically find all of the places that create a |
beta backport approved, stable backport on hold, will be discussed next week (Zulip discussion) |
beta-nom label should not have been removed, see https://forge.rust-lang.org/release/beta-backporting.html -- can we add this to wg-prioritization docs perhaps? I think we're not highlighting those docs enough or they are confusing perhaps? |
@bors r+ |
📌 Commit 5db5d8f has been approved by |
@bors p=1 |
…=nikomatsakis Make hitting the recursion limit in projection non-fatal This change was originally made in rust-lang#80246 to avoid future (effectively) infinite loop bugs in projections, but wundergraph relies on rustc recovering here. cc rust-lang#80953 r? `@nikomatsakis`
☀️ Test successful - checks-actions |
…ikomatsakis Make hitting the recursion limit in projection non-fatal This change was originally made in rust-lang#80246 to avoid future (effectively) infinite loop bugs in projections, but wundergraph relies on rustc recovering here. cc rust-lang#80953 r? `@nikomatsakis`
[beta] backports This backports: * CI: only copy python.exe to python3.exe if the latter does not exist rust-lang#81762 * Make hitting the recursion limit in projection non-fatal rust-lang#81055 * Remove incorrect `delay_span_bug` rust-lang#81532 * introduce future-compatibility warning for forbidden lint groups rust-lang#81556 * Update cargo rust-lang#81755 * rustdoc: Fix visibility of trait and impl items rust-lang#81288 * Work around missing -dev packages in solaris docker image. rust-lang#81229 * Update LayoutError/LayoutErr stability attributes rust-lang#81767 * Revert 78373 ("dont leak return value after panic in drop") rust-lang#81257 * Rename `panic_fmt` lint to `non_fmt_panic` rust-lang#81729
@matthewjasper Is there an open issue for applying the correct fix? |
This change was originally made in #80246 to avoid future (effectively) infinite loop bugs in projections,
but wundergraph relies on rustc recovering here.
cc #80953
r? @nikomatsakis