-
Notifications
You must be signed in to change notification settings - Fork 389
TB diagnostics: avoid printing irrelevant events #2888
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
Conversation
You wrote
What is an example that you still consider confusing? |
The pattern occurs in
I think it should acknowledge somehow that at some point the |
It could just say "transitioned to Disabled" and thus avoid the mention of the (irrelevant) frozen. Or you could add a line like
|
I like the "transitioned to Disabled" version because there's no real difference between |
Still has the draft label, so @rustbot author |
@rustbot ready |
It's probably better to get this one before #2887 , that way we'll have the correct error messages directly. |
Thanks! Can you squash the history a bit? Then we can land this. |
impl of is_relevant on transitions makes for much less noise in error messages Co-authored-by: Ralf Jung <[email protected]>
@RalfJung bump ? |
Sorry I didn't see this -- GH doesn't reliably send notifications on force-pushes, so please always leave a message when the next round of review is due. :) @bors r+ |
☀️ Test successful - checks-actions |
TB: more fail tests (mostly shared with SB) Although it was not in the tests, `mem::transmute` works for `UnsafeCell -> &` as well. Draft: will also introduce more test cases for cases that fail. Draft: depends on the new error messages from #2888
History contains some events that are relevant to the location but not useful to understand the error.
We can make the selection of events more precise, from only "does it affect the location" to also "is it relevant for this kind of error"
This is also the occasion to fix #2867 (comment)
[Solved] Draft: find a way for blanks in the history to not be confusing, as with the current version the history can show the creation as
Reserved
then show where it transitioned fromFrozen
toDisabled
, but it will say nothing of theReserved -> Frozen
leading up to it.