]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/lint/builtin.rs
Add warning cycle #42238.
[rust.git] / src / librustc / lint / builtin.rs
index e681d55cf94b893db2fd37f65eb7e5a422bc4dda..f08c37b773af948a3c1e15287337fafce43fd15d 100644 (file)
     "detects missing fragment specifiers in unused `macro_rules!` patterns"
 }
 
+declare_lint! {
+    pub PARENTHESIZED_PARAMS_IN_TYPES_AND_MODULES,
+    Warn,
+    "detects parenthesized generic parameters in type and module names"
+}
+
 declare_lint! {
     pub DEPRECATED,
     Warn,
@@ -286,6 +292,7 @@ fn get_lints(&self) -> LintArray {
             LEGACY_IMPORTS,
             LEGACY_CONSTRUCTOR_VISIBILITY,
             MISSING_FRAGMENT_SPECIFIER,
+            PARENTHESIZED_PARAMS_IN_TYPES_AND_MODULES,
             DEPRECATED
         )
     }