diff options
| author | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-10-01 14:28:15 +0200 |
|---|---|---|
| committer | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-10-03 10:07:05 +0200 |
| commit | 1f943849b1ad1fc91c0984322b1a24ba2fe8e630 (patch) | |
| tree | a0b8753b20d8966042000c947f07fae185cacac8 | |
| parent | 9e46c0b68938e0bb568358e49cd1b40c2700c58d (diff) | |
| download | rust-1f943849b1ad1fc91c0984322b1a24ba2fe8e630.tar.gz rust-1f943849b1ad1fc91c0984322b1a24ba2fe8e630.zip | |
Update error id to an unused one
| -rw-r--r-- | src/libsyntax/attr/builtin.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/diagnostic_list.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/attr/builtin.rs b/src/libsyntax/attr/builtin.rs index c285133f4c0..f1cec422420 100644 --- a/src/libsyntax/attr/builtin.rs +++ b/src/libsyntax/attr/builtin.rs @@ -435,7 +435,7 @@ fn find_stability_generic<'a, I>(diagnostic: &Handler, if let Some(ref mut stab) = stab { stab.promotable = true; } else { - span_err!(diagnostic, item_sp, E0713, + span_err!(diagnostic, item_sp, E0717, "rustc_promotable attribute must be paired with \ either stable or unstable attribute"); } diff --git a/src/libsyntax/diagnostic_list.rs b/src/libsyntax/diagnostic_list.rs index b5818036acd..5155ebbe19d 100644 --- a/src/libsyntax/diagnostic_list.rs +++ b/src/libsyntax/diagnostic_list.rs @@ -413,5 +413,5 @@ register_diagnostics! { E0694, // an unknown tool name found in scoped attributes E0703, // invalid ABI E0704, // incorrect visibility restriction - E0713, // rustc_promotable without stability attribute + E0717, // rustc_promotable without stability attribute } |
