I notice this might be difficult as the headings are only generated at a later point. But it would be helpful if rustdoc could validate links to headings.
A usecase would be having a long description on some module containing a heading:
# Some Heading
And linking to it in some other place
[see heading](module#some-heading)
This will work, but if someone should change the heading this link will break without any warning. Therefor I'm proposing that rustdoc could add a function to validate this.