Fix up some ‘help’ messages

This commit is contained in:
P1start 2015-01-20 19:25:28 +13:00
parent 7f8c687fdf
commit ed769bf87f
8 changed files with 16 additions and 16 deletions

View file

@ -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");