Suboptimal diagnostic if const eval error site is in a different crate #80380
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
We currently produce fun diagnostics like
Which I have multiple problems with (all of which are my fault 😛)
I think we should adjust the diagnostic to report on the site in the currently compiling crate while still mentioning the backtrace in full, so something like
cc @rust-lang/wg-diagnostics @rust-lang/wg-const-eval
The text was updated successfully, but these errors were encountered: