Skip to content

Commit b777f14

Browse files
Move E0533 to E0558 (because of external change)
1 parent 937f072 commit b777f14

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

src/libsyntax/attr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ pub fn find_export_name_attr(diag: &Handler, attrs: &[Attribute]) -> Option<Inte
324324
if let s@Some(_) = attr.value_str() {
325325
s
326326
} else {
327-
struct_span_err!(diag, attr.span, E0533,
327+
struct_span_err!(diag, attr.span, E0558,
328328
"export_name attribute has invalid format")
329329
.help("use #[export_name=\"*\"]")
330330
.emit();

src/libsyntax/diagnostic_list.rs

+23-23
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,6 @@
1515
// In vim you can `:set tw=80` and use `gq` to wrap paragraphs. Use `:set tw=0` to disable.
1616
register_long_diagnostics! {
1717

18-
E0533: r##"
19-
The `export_name` attribute was malformed.
20-
21-
Erroneous code example:
22-
23-
```compile_fail,E0533
24-
#[export_name] // error: export_name attribute has invalid format
25-
pub fn something() {}
26-
27-
fn main() {}
28-
```
29-
30-
The `export_name` attribute expects a string in order to determine the name of
31-
the exported symbol. Example:
32-
33-
```
34-
#[export_name = "some_function"] // ok!
35-
pub fn something() {}
36-
37-
fn main() {}
38-
```
39-
"##,
40-
4118
E0534: r##"
4219
The `inline` attribute was malformed.
4320
@@ -161,6 +138,29 @@ For more information about the cfg attribute, read:
161138
https://doc.rust-lang.org/reference.html#conditional-compilation
162139
"##,
163140

141+
E0558: r##"
142+
The `export_name` attribute was malformed.
143+
144+
Erroneous code example:
145+
146+
```compile_fail,E0558
147+
#[export_name] // error: export_name attribute has invalid format
148+
pub fn something() {}
149+
150+
fn main() {}
151+
```
152+
153+
The `export_name` attribute expects a string in order to determine the name of
154+
the exported symbol. Example:
155+
156+
```
157+
#[export_name = "some_function"] // ok!
158+
pub fn something() {}
159+
160+
fn main() {}
161+
```
162+
"##,
163+
164164
}
165165

166166
register_diagnostics! {

0 commit comments

Comments
 (0)