We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
deny
forbid
1 parent a51288c commit 0515d0bCopy full SHA for 0515d0b
src/attributes/diagnostics.md
@@ -43,8 +43,9 @@ pub mod m1 {
43
```
44
45
Lint attributes can override the level specified from a previous attribute, as
46
-long as the level does not attempt to change a forbidden lint. Previous
47
-attributes are those from a higher level in the syntax tree, or from a
+long as the level does not attempt to change a forbidden lint
+(except for `deny`, which is allowed inside a `forbid` context, but ignored).
48
+Previous attributes are those from a higher level in the syntax tree, or from a
49
previous attribute on the same entity as listed in left-to-right source order.
50
51
This example shows how one can use `allow` and `warn` to toggle a particular
0 commit comments