Skip to content

Commit d2191d9

Browse files
Merge pull request #1655 from valentinewallace/2022-08-fix-ci-doc-links-check
Fix CI to error on doc links to private items
2 parents d024251 + c242003 commit d2191d9

File tree

7 files changed

+23
-3
lines changed
  • lightning/src
  • lightning-background-processor/src
  • lightning-block-sync/src
  • lightning-invoice/src
  • lightning-net-tokio/src
  • lightning-persister/src
  • lightning-rapid-gossip-sync/src

7 files changed

+23
-3
lines changed

lightning-background-processor/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
//! running properly, and (2) either can or should be run in the background. See docs for
33
//! [`BackgroundProcessor`] for more details on the nitty-gritty.
44
5+
// Prefix these with `rustdoc::` when we update our MSRV to be >= 1.52 to remove warnings.
56
#![deny(broken_intra_doc_links)]
7+
#![deny(private_intra_doc_links)]
8+
69
#![deny(missing_docs)]
710
#![deny(unsafe_code)]
811

lightning-block-sync/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
//! Both features support either blocking I/O using `std::net::TcpStream` or, with feature `tokio`,
1414
//! non-blocking I/O using `tokio::net::TcpStream` from inside a Tokio runtime.
1515
16+
// Prefix these with `rustdoc::` when we update our MSRV to be >= 1.52 to remove warnings.
1617
#![deny(broken_intra_doc_links)]
18+
#![deny(private_intra_doc_links)]
19+
1720
#![deny(missing_docs)]
1821
#![deny(unsafe_code)]
1922

lightning-invoice/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
// Prefix these with `rustdoc::` when we update our MSRV to be >= 1.52 to remove warnings.
2+
#![deny(broken_intra_doc_links)]
3+
#![deny(private_intra_doc_links)]
4+
15
#![deny(missing_docs)]
26
#![deny(non_upper_case_globals)]
37
#![deny(non_camel_case_types)]
48
#![deny(non_snake_case)]
59
#![deny(unused_mut)]
6-
#![deny(broken_intra_doc_links)]
710

811
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
912

lightning-net-tokio/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,11 @@
6666
//! }
6767
//! ```
6868
69+
// Prefix these with `rustdoc::` when we update our MSRV to be >= 1.52 to remove warnings.
6970
#![deny(broken_intra_doc_links)]
70-
#![deny(missing_docs)]
71+
#![deny(private_intra_doc_links)]
7172

73+
#![deny(missing_docs)]
7274
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
7375

7476
use bitcoin::secp256k1::PublicKey;

lightning-persister/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
//! Utilities that handle persisting Rust-Lightning data to disk via standard filesystem APIs.
22
3+
// Prefix these with `rustdoc::` when we update our MSRV to be >= 1.52 to remove warnings.
34
#![deny(broken_intra_doc_links)]
5+
#![deny(private_intra_doc_links)]
6+
47
#![deny(missing_docs)]
58

69
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

lightning-rapid-gossip-sync/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
// Prefix these with `rustdoc::` when we update our MSRV to be >= 1.52 to remove warnings.
2+
#![deny(broken_intra_doc_links)]
3+
#![deny(private_intra_doc_links)]
4+
15
#![deny(missing_docs)]
26
#![deny(unsafe_code)]
3-
#![deny(broken_intra_doc_links)]
47
#![deny(non_upper_case_globals)]
58
#![deny(non_camel_case_types)]
69
#![deny(non_snake_case)]

lightning/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@
3939
4040
#![cfg_attr(not(any(test, fuzzing, feature = "_test_utils")), deny(missing_docs))]
4141
#![cfg_attr(not(any(test, fuzzing, feature = "_test_utils")), forbid(unsafe_code))]
42+
43+
// Prefix these with `rustdoc::` when we update our MSRV to be >= 1.52 to remove warnings.
4244
#![deny(broken_intra_doc_links)]
45+
#![deny(private_intra_doc_links)]
4346

4447
// In general, rust is absolutely horrid at supporting users doing things like,
4548
// for example, compiling Rust code for real environments. Disable useless lints

0 commit comments

Comments
 (0)