diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-07-11 23:27:27 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-07-11 23:27:27 +0200 |
| commit | b777f145e6f71b3d4b9a7140bb8e039e1dd64a9a (patch) | |
| tree | 84a497b8b8ea20380f6eedd6db30e4c5542c6e55 /src/libsyntax | |
| parent | 937f072cb4d443d44dd9ae2489d5d6fd588ec43f (diff) | |
| download | rust-b777f145e6f71b3d4b9a7140bb8e039e1dd64a9a.tar.gz rust-b777f145e6f71b3d4b9a7140bb8e039e1dd64a9a.zip | |
Move E0533 to E0558 (because of external change)
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/attr.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/diagnostic_list.rs | 46 |
2 files changed, 24 insertions, 24 deletions
diff --git a/src/libsyntax/attr.rs b/src/libsyntax/attr.rs index a4a8655ce37..67f73d4dd4f 100644 --- a/src/libsyntax/attr.rs +++ b/src/libsyntax/attr.rs @@ -324,7 +324,7 @@ pub fn find_export_name_attr(diag: &Handler, attrs: &[Attribute]) -> Option<Inte if let s@Some(_) = attr.value_str() { s } else { - struct_span_err!(diag, attr.span, E0533, + struct_span_err!(diag, attr.span, E0558, "export_name attribute has invalid format") .help("use #[export_name=\"*\"]") .emit(); diff --git a/src/libsyntax/diagnostic_list.rs b/src/libsyntax/diagnostic_list.rs index 260575d42e7..010b1d638e6 100644 --- a/src/libsyntax/diagnostic_list.rs +++ b/src/libsyntax/diagnostic_list.rs @@ -15,29 +15,6 @@ // In vim you can `:set tw=80` and use `gq` to wrap paragraphs. Use `:set tw=0` to disable. register_long_diagnostics! { -E0533: r##" -The `export_name` attribute was malformed. - -Erroneous code example: - -```compile_fail,E0533 -#[export_name] // error: export_name attribute has invalid format -pub fn something() {} - -fn main() {} -``` - -The `export_name` attribute expects a string in order to determine the name of -the exported symbol. Example: - -``` -#[export_name = "some_function"] // ok! -pub fn something() {} - -fn main() {} -``` -"##, - E0534: r##" The `inline` attribute was malformed. @@ -161,6 +138,29 @@ For more information about the cfg attribute, read: https://doc.rust-lang.org/reference.html#conditional-compilation "##, +E0558: r##" +The `export_name` attribute was malformed. + +Erroneous code example: + +```compile_fail,E0558 +#[export_name] // error: export_name attribute has invalid format +pub fn something() {} + +fn main() {} +``` + +The `export_name` attribute expects a string in order to determine the name of +the exported symbol. Example: + +``` +#[export_name = "some_function"] // ok! +pub fn something() {} + +fn main() {} +``` +"##, + } register_diagnostics! { |
