Declare a new lint to properly deny warnings in rustdoc by poliorcetics · Pull Request #79816 · rust-lang/rust (original) (raw)
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not always local (e.g. if this is a re-export), I think we found why it wasn't a lint before. Fortunately, we don't need to check the syntax of other crates, so you can just return without doing anything if it's non-local.
See #77230 for more discussion; it would also be good to add a test, since if the behavior changes it should be intentional.