]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_lint_defs/src/builtin.rs
Rename lint to non_autolinks
[rust.git] / compiler / rustc_lint_defs / src / builtin.rs
index 3fc9c096696badb98bb3eeffca41b56101aa30c0..ff7a145c2668d8810f6b34d8c7612f9323cd3f5d 100644 (file)
 }
 
 declare_lint! {
-    /// The `automatic_links` lint detects when a URL/email address could be
-    /// written using only brackets. This is a `rustdoc` only lint, see the
+    /// 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].
     ///
-    /// [rustdoc book]: ../../../rustdoc/lints.html#automatic_links
-    pub AUTOMATIC_LINKS,
-    Allow,
-    "detects URLs/email adresses that could be written using only brackets"
+    /// [rustdoc book]: ../../../rustdoc/lints.html#non_autolinks
+    pub NON_AUTOLINKS,
+    Warn,
+    "detects URLs that could be written using only angle brackets"
 }
 
 declare_lint! {
         MISSING_DOC_CODE_EXAMPLES,
         INVALID_HTML_TAGS,
         PRIVATE_DOC_TESTS,
-        AUTOMATIC_LINKS,
+        NON_AUTOLINKS,
         WHERE_CLAUSES_OBJECT_SAFETY,
         PROC_MACRO_DERIVE_RESOLUTION_FALLBACK,
         MACRO_USE_EXTERN_CRATE,