Skip to content

Commit 84e874f

Browse files
Add comments on error code list
1 parent 7a8b402 commit 84e874f

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

src/libsyntax/diagnostic_list.rs

+26-26
Original file line numberDiff line numberDiff line change
@@ -19,36 +19,36 @@ E0533: r##"
1919
```compile_fail,E0533
2020
#[export_name]
2121
pub fn something() {}
22+
23+
fn main() {}
2224
```
2325
"##,
2426

2527
}
2628

27-
2829
register_diagnostics! {
29-
E0534,
30-
E0535,
31-
E0536,
32-
E0537,
33-
E0538,
34-
E0539,
35-
E0540,
36-
E0541,
37-
E0542,
38-
E0543,
39-
E0544,
40-
E0545,
41-
E0546,
42-
E0547,
43-
E0548,
44-
E0549,
45-
E0550,
46-
E0551,
47-
E0552,
48-
E0553,
49-
E0554,
50-
E0555,
51-
E0556,
52-
E0557,
53-
E0558,
30+
E0534, // expected one argument
31+
E0535, // invalid argument
32+
E0536, // expected 1 cfg-pattern
33+
E0537, // invalid predicate
34+
E0538, // multiple [same] items
35+
E0539, // incorrect meta item
36+
E0540, // multiple rustc_deprecated attributes
37+
E0541, // unknown meta item
38+
E0542, // missing 'since'
39+
E0543, // missing 'reason'
40+
E0544, // multiple stability levels
41+
E0545, // incorrect 'issue'
42+
E0546, // missing 'feature'
43+
E0547, // missing 'issue'
44+
E0548, // incorrect stability attribute type
45+
E0549, // rustc_deprecated attribute must be paired with either stable or unstable attribute
46+
E0550, // multiple deprecated attributes
47+
E0551, // incorrect meta item
48+
E0552, // unrecognized representation hint
49+
E0553, // unrecognized enum representation hint
50+
E0554, // #[feature] may not be used on the [] release channel
51+
E0555, // malformed feature attribute, expected #![feature(...)]
52+
E0556, // malformed feature, expected just one word
53+
E0557, // feature has been removed
5454
}

src/libsyntax/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,4 @@ pub mod ext {
138138
}
139139
}
140140

141-
__build_diagnostic_array! { libsyntax, DIAGNOSTICS }
141+
// __build_diagnostic_array! { libsyntax, DIAGNOSTICS }

0 commit comments

Comments
 (0)