Fix up some ‘help’ messages
This commit is contained in:
parent
7f8c687fdf
commit
ed769bf87f
8 changed files with 16 additions and 16 deletions
|
|
@ -462,11 +462,11 @@ impl<'a> LifetimeContext<'a> {
|
|||
format!("lifetime name `{}` shadows another \
|
||||
lifetime name that is already in scope",
|
||||
token::get_name(lifetime.name)).as_slice());
|
||||
self.sess.span_help(
|
||||
self.sess.span_note(
|
||||
lifetime_def.span,
|
||||
format!("shadowed lifetime `{}` declared here",
|
||||
token::get_name(lifetime.name)).as_slice());
|
||||
self.sess.span_help(
|
||||
self.sess.span_note(
|
||||
lifetime.span,
|
||||
"shadowed lifetimes are deprecated \
|
||||
and will become a hard error before 1.0");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue