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
|
|
@ -674,8 +674,7 @@ impl<'a> LifetimeContext<'a> {
|
|||
for lifetime in lifetimes {
|
||||
if special_idents.iter().any(|&i| i.name == lifetime.lifetime.name) {
|
||||
span_err!(self.sess, lifetime.lifetime.span, E0262,
|
||||
"illegal lifetime parameter name: `{}`",
|
||||
lifetime.lifetime.name);
|
||||
"invalid lifetime parameter name: `{}`", lifetime.lifetime.name);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue