Remove assert for unstable expectation IDs#94968
Remove assert for unstable expectation IDs#94968xFrednet wants to merge 1 commit intorust-lang:masterfrom
assert for unstable expectation IDs#94968Conversation
The assert requires that the `check_crate` query was executed before the `HandlerInner` is dropped. This will not always be the case and can cause ICEs.
|
(rust-highfive has picked a reviewer for you, use r? to override) |
|
It is not obvious to me that removing the assert here is the right step, instead of fixing whatever is causing us to not handle the stashed IDs. I'm not very familiar with this infrastructure though so maybe r? @wesleywiser? |
Agreed, I think the assert is important, so we don't accidentally forget about stashed diagnostics leading to them never being displayed in some case. Without the assert, it will be difficult to track down why they aren't being emitted. If this is only happening with |
|
I believe that this will remain a problem even with the planned refactorings. However, I'm okay with leaving the issue open and revisiting it later :). I'll close this PR meanwhile. :) |
The
assertrequires that thecheck_cratequery was executed beforeHandlerInneris dropped. This will not always be the case and can cause ICEs.Closes #94953
The ICE was introduced in #94670