rustdoc --test mis-reports origins of #[deny(warnings)] #66622
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-doctests
Area: Documentation tests, run by rustdoc
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Here's an example I stumbled onto with a copy of
rand 0.5.6
:Note there is a lot wrong here:
No, instead, this rule is inserted somewhere else entirely:
Obviously macros are to blame here, but as it stands, this makes this reported error source entirely useless, not only is it getting the line and the file wrong, it cites a literal string that doesn't even exist as-stated in the source code, presenting it under the guise of being literal source code.
I'm probably gonna also have to file another bug about that whole "
--cap-lints warn
does absolutely nothing" deal it has going on there.The text was updated successfully, but these errors were encountered: