The Rust team uses a linkchecker tool, but since anchors are generated by JavaScript code, it can't check if those anchors are valid. It would be a better solution to generate anchors when building the book. This would also be a step in the right direction for no-js people too. rust-lang/rust#39856