diff options
| author | Michael Howell <michael@notriddle.com> | 2024-06-29 11:24:36 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2024-07-01 07:21:02 -0700 |
| commit | 294c3dda881ae65d528ee0380b7628deaf33ae96 (patch) | |
| tree | 66c8624903b2f8d35ae783635e5bc6642f168907 /src/librustdoc/lint.rs | |
| parent | 15fbe618a14ddde520561c4cf1b85d4e4c9005f8 (diff) | |
| download | rust-294c3dda881ae65d528ee0380b7628deaf33ae96.tar.gz rust-294c3dda881ae65d528ee0380b7628deaf33ae96.zip | |
rustdoc: add usable lint for pulldown-cmark-0.11 parsing changes
Diffstat (limited to 'src/librustdoc/lint.rs')
| -rw-r--r-- | src/librustdoc/lint.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/librustdoc/lint.rs b/src/librustdoc/lint.rs index dd2bb47e592..8eaca70eaff 100644 --- a/src/librustdoc/lint.rs +++ b/src/librustdoc/lint.rs @@ -196,6 +196,14 @@ declare_rustdoc_lint! { "detects redundant explicit links in doc comments" } +declare_rustdoc_lint! { + /// This compatibility lint checks for Markdown syntax that works in the old engine but not + /// the new one. + UNPORTABLE_MARKDOWN, + Warn, + "detects markdown that is interpreted differently in different parser" +} + pub(crate) static RUSTDOC_LINTS: Lazy<Vec<&'static Lint>> = Lazy::new(|| { vec![ BROKEN_INTRA_DOC_LINKS, @@ -209,6 +217,7 @@ pub(crate) static RUSTDOC_LINTS: Lazy<Vec<&'static Lint>> = Lazy::new(|| { MISSING_CRATE_LEVEL_DOCS, UNESCAPED_BACKTICKS, REDUNDANT_EXPLICIT_LINKS, + UNPORTABLE_MARKDOWN, ] }); |
