]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_feature/src/builtin_attrs.rs
Added `Expect` lint level and attribute (RFC-2383)
[rust.git] / compiler / rustc_feature / src / builtin_attrs.rs
index 53762eef785920257279ca4075f0cbb229cc09e7..4b9cf784495fec49cb068149b15aa3c1843bf1d3 100644 (file)
@@ -282,6 +282,10 @@ pub struct BuiltinAttribute {
     ungated!(
         allow, Normal, template!(List: r#"lint1, lint2, ..., /*opt*/ reason = "...""#), DuplicatesOk
     ),
+    gated!(
+        expect, Normal, template!(List: r#"lint1, lint2, ..., /*opt*/ reason = "...""#), DuplicatesOk,
+        lint_reasons, experimental!(expect)
+    ),
     ungated!(
         forbid, Normal, template!(List: r#"lint1, lint2, ..., /*opt*/ reason = "...""#), DuplicatesOk
     ),