const
s that depend on other constants which fail to evaluate create difficult to read error messages due to notes:
output
#135259
Labels
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.
Code
Current output
Desired output
Rationale and extra context
playground link to repro: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=f8bd0c35877ea97f896174c4543618cc
seems like a regression of this previous issue & fix: #110891
while working on a macro for
rasn
, I tested the panic conditions for failure to parse the input literal, which I noticed produces a wall ofnote:
s that are utterly useless (especially given the fact that the macro is not expanded in the doctest so the error spans are just the same macro invocation over and over + a couple others, which makes finding the error very difficult:Other cases
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: