Enforce doc link correctness during `cargo doc` runs and in CI
[rust-lightning] / lightning / src / lib.rs
index 7310a49aef53ac6f1432df78c0e04103002836ab..2d764c8b71b1355200ca062087fcb22044b5c24b 100644 (file)
@@ -19,7 +19,8 @@
 //! instead of having a rather-separate lightning appendage to a wallet.
 
 #![cfg_attr(not(any(feature = "fuzztarget", feature = "_test_utils")), deny(missing_docs))]
-#![forbid(unsafe_code)]
+#![cfg_attr(not(any(test, feature = "fuzztarget", feature = "_test_utils")), forbid(unsafe_code))]
+#![deny(broken_intra_doc_links)]
 
 // In general, rust is absolutely horrid at supporting users doing things like,
 // for example, compiling Rust code for real environments. Disable useless lints