diff options
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/diagnostic_list.rs | 4 | ||||
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/diagnostic_list.rs b/src/libsyntax/diagnostic_list.rs index 20318854758..8534969c623 100644 --- a/src/libsyntax/diagnostic_list.rs +++ b/src/libsyntax/diagnostic_list.rs @@ -397,6 +397,6 @@ register_diagnostics! { E0630, // rustc_const_unstable attribute must be paired with stable/unstable attribute E0693, // incorrect `repr(align)` attribute format E0694, // an unknown tool name found in scoped attributes - E0697, // invalid ABI - E0698, // incorrect visibility restriction + E0703, // invalid ABI + E0704, // incorrect visibility restriction } diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 398d2f04d0f..2c6ea50d2c8 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -6000,7 +6000,7 @@ impl<'a> Parser<'a> { let sp = self.prev_span; let help_msg = format!("make this visible only to module `{}` with `in`", path); self.expect(&token::CloseDelim(token::Paren))?; // `)` - let mut err = struct_span_err!(self.sess.span_diagnostic, sp, E0698, "{}", msg); + let mut err = struct_span_err!(self.sess.span_diagnostic, sp, E0704, "{}", msg); err.help(suggestion); err.span_suggestion_with_applicability( sp, &help_msg, format!("in {}", path), Applicability::MachineApplicable @@ -6550,7 +6550,7 @@ impl<'a> Parser<'a> { let mut err = struct_span_err!( self.sess.span_diagnostic, prev_span, - E0697, + E0703, "invalid ABI: found `{}`", s); err.span_label(prev_span, "invalid ABI"); |
