rustc: fix test failures after rebase.

This commit is contained in:
Huon Wilson 2013-06-13 10:47:33 +10:00
parent a30ee0dee1
commit 5ebffd46d5

View File

@ -1239,10 +1239,10 @@ impl Resolver {
if *old_sp != span {
self.session.span_err(span,
fmt!("duplicate definition of method `%s`",
*self.session.str_of(ident)));
self.session.str_of(ident)));
self.session.span_note(*old_sp,
fmt!("first definition of method `%s` here",
*self.session.str_of(ident)));
self.session.str_of(ident)));
}
}
}
@ -1376,10 +1376,10 @@ impl Resolver {
if *old_sp != ty_m.span {
self.session.span_err(ty_m.span,
fmt!("duplicate definition of method `%s`",
*self.session.str_of(ident)));
self.session.str_of(ident)));
self.session.span_note(*old_sp,
fmt!("first definition of method `%s` here",
*self.session.str_of(ident)));
self.session.str_of(ident)));
}
}
}