-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Tweak name of delay_*_bug
functions
#108408
Conversation
Some changes occurred to the CTFE / Miri engine cc @rust-lang/miri |
// where the explanation of what "good path" is (also, it should be renamed). | ||
pub fn delay_good_path_bug(&self, msg: impl Into<DiagnosticMessage>) { | ||
self.inner.borrow_mut().delay_good_path_bug(msg) | ||
// FIXME(eddyb) note the comment inside `impl Drop for HandlerInner`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know what this FIXME is actually asking for... to copy the explanation and give this function a good doc comment? I'm gonna leave it for now lol.
delay_good_path_bug
-> bug_unless_diagnostic_emitted
delay_good_path_bug
-> delay_bug_unless_diagnostic_emitted
Would it also make sense to rename "delay span bug" to something more descriptive? |
I wouldn't mind |
|
Some changes occurred to the CTFE / Miri engine cc @rust-lang/miri Some changes occurred in cc @BoxyUwU Some changes occurred to the core trait solver cc @rust-lang/initiative-trait-system-refactor Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt |
That's a lot of changes... if people have strong feelings about this many call-sites being touched, I'd be fine with just landing the first commit. 🤷 😄 |
This comment has been minimized.
This comment has been minimized.
d9e360a
to
23a797d
Compare
delay_good_path_bug
-> delay_bug_unless_diagnostic_emitted
delay_*_bug
functions
The job Click to see the possible cause of the failure (guessed by this bot)
|
What about Personally I spent a long time in the "I think I know what this function does but I'm not 100% sure" area, so I'd love a better name. |
☔ The latest upstream changes (presumably #108250) made this pull request unmergeable. Please resolve the merge conflicts. |
i kinda like |
r? @BoxyUwU
open to alternative name suggestions