Tweak name of delay_*_bug functions#108408
Tweak name of delay_*_bug functions#108408compiler-errors wants to merge 2 commits intorust-lang:masterfrom
delay_*_bug functions#108408Conversation
|
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.
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_emitteddelay_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_emitteddelay_*_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