forked from obi1kenobi/cargo-semver-checks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cap-lints when building rustdoc JSON (obi1kenobi#357)
* cap-lints when building rustdoc JSON * Add `broken_rustdoc` test crate. * Conditionally disable lints when building rustdoc. --------- Co-authored-by: Predrag Gruevski <obi1kenobi82@gmail.com> Co-authored-by: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com>
- Loading branch information
1 parent
80d8e09
commit 618dc8f
Showing
6 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[package] | ||
publish = false | ||
name = "broken_rustdoc" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#![deny(missing_docs, rustdoc::broken_intra_doc_links)] | ||
|
||
/// Rust doc comment with an unescaped HTML <tag> that rustdoc will complain about. | ||
/// | ||
/// Also, a link that points to nowhere: [`Foo::bar`]. | ||
pub struct Foo; | ||
|
||
pub struct Undocumented; // fails the `missing_docs` lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[package] | ||
publish = false | ||
name = "broken_rustdoc" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#![deny(missing_docs, rustdoc::broken_intra_doc_links)] | ||
|
||
/// Rust doc comment with an unescaped HTML <tag> that rustdoc will complain about. | ||
/// | ||
/// Also, a link that points to nowhere: [`Foo::bar`]. | ||
pub struct Foo; | ||
|
||
pub struct Undocumented; // fails the `missing_docs` lint |