rustdoc panics while documenting panicking associated constant #131625
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
I have the following code:
While this is contrived, this pattern is used in real codebases to take advantage of post-monomorphization errors (PME's), for example here.
When running
cargo doc
, rustdoc seems to try to evaluate the constant, and crashes:Miscellaneous
The text was updated successfully, but these errors were encountered: