Skip to content

Commit 322e0f7

Browse files
Remove the E0536 error code
1 parent acea7df commit 322e0f7

File tree

1 file changed

+6
-6
lines changed
  • compiler/rustc_error_codes/src/error_codes

1 file changed

+6
-6
lines changed

compiler/rustc_error_codes/src/error_codes/E0536.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
#### Note: this error code is no longer emitted by the compiler.
2+
13
The `not` cfg-predicate was malformed.
24

3-
Erroneous code example (using `cargo doc`):
5+
Erroneous code example:
46

5-
```ignore, E0536 (only triggers on cargo doc)
6-
#![feature(doc_cfg)]
7-
#[doc(cfg(not()))]
7+
```compile_fail
8+
#[cfg(not())]
89
pub fn main() {
910
1011
}
@@ -13,8 +14,7 @@ pub fn main() {
1314
The `not` predicate expects one cfg-pattern. Example:
1415

1516
```
16-
#![feature(doc_cfg)]
17-
#[doc(cfg(not(target_os = "linux")))] // ok!
17+
#[cfg(not(target_os = "linux"))] // ok!
1818
pub fn main() {
1919
2020
}

0 commit comments

Comments
 (0)