Replace illegal with invalid in most diagnostics
This commit is contained in:
parent
ffcdf0881b
commit
cca0ea718d
19 changed files with 61 additions and 62 deletions
|
@ -681,7 +681,7 @@ impl<'a> Parser<'a> {
|
|||
if text.is_empty() {
|
||||
self.span_bug(sp, "found empty literal suffix in Some")
|
||||
}
|
||||
self.span_err(sp, &*format!("{} with a suffix is illegal", kind));
|
||||
self.span_err(sp, &*format!("{} with a suffix is invalid", kind));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -5286,7 +5286,7 @@ impl<'a> Parser<'a> {
|
|||
let last_span = self.last_span;
|
||||
self.span_err(
|
||||
last_span,
|
||||
&format!("illegal ABI: expected one of [{}], \
|
||||
&format!("invalid ABI: expected one of [{}], \
|
||||
found `{}`",
|
||||
abi::all_names().join(", "),
|
||||
s));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue