diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2021-03-27 23:35:02 -0400 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2021-04-05 04:13:34 -0400 |
| commit | ef4e5b9ecb10480cd87bd7875e4169ca5edeb0fd (patch) | |
| tree | 7849b50f935a5dc1b7fda7b1103ca509ac63e367 /src/librustdoc/lint.rs | |
| parent | 6f89468fc513eb12ef8a1137a70fab8bb9f50f14 (diff) | |
| download | rust-ef4e5b9ecb10480cd87bd7875e4169ca5edeb0fd.tar.gz rust-ef4e5b9ecb10480cd87bd7875e4169ca5edeb0fd.zip | |
Rename non_autolinks -> bare_urls
Diffstat (limited to 'src/librustdoc/lint.rs')
| -rw-r--r-- | src/librustdoc/lint.rs | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/librustdoc/lint.rs b/src/librustdoc/lint.rs index ffa2f7a47fd..fe3102e94f8 100644 --- a/src/librustdoc/lint.rs +++ b/src/librustdoc/lint.rs @@ -148,14 +148,13 @@ declare_rustdoc_lint! { } declare_rustdoc_lint! { - /// The `non_autolinks` lint detects when a URL could be written using - /// only angle brackets. This is a `rustdoc` only lint, see the - /// documentation in the [rustdoc book]. + /// The `non_autolinks` lint detects when a URL is not a hyperlink. + /// This is a `rustdoc` only lint, see the documentation in the [rustdoc book]. /// - /// [rustdoc book]: ../../../rustdoc/lints.html#non_autolinks - NON_AUTOLINKS, + /// [rustdoc book]: ../../../rustdoc/lints.html#bare_urls + BARE_URLS, Warn, - "detects URLs that could be written using only angle brackets" + "detects URLs that are not hyperlinks" } crate static RUSTDOC_LINTS: Lazy<Vec<&'static Lint>> = Lazy::new(|| { @@ -166,7 +165,7 @@ crate static RUSTDOC_LINTS: Lazy<Vec<&'static Lint>> = Lazy::new(|| { PRIVATE_DOC_TESTS, INVALID_CODEBLOCK_ATTRIBUTES, INVALID_HTML_TAGS, - NON_AUTOLINKS, + BARE_URLS, MISSING_CRATE_LEVEL_DOCS, ] }); @@ -185,4 +184,6 @@ crate fn register_lints(_sess: &Session, lint_store: &mut LintStore) { } lint_store .register_renamed("intra_doc_link_resolution_failure", "rustdoc::broken_intra_doc_links"); + lint_store.register_renamed("non_autolinks", "rustdoc::bare_urls"); + lint_store.register_renamed("rustdoc::non_autolinks", "rustdoc::bare_urls"); } |
