rustc: Make the error names in resolve3 conform more closely to what the compile-fail tests expect

This commit is contained in:
Patrick Walton 2012-07-03 19:10:45 -07:00
parent 139d843dce
commit cc3b6bf2f0

View File

@ -3647,8 +3647,7 @@ class Resolver {
NoNameDefinition {
// We failed to resolve the name. Report an error.
self.session.span_err(path.span,
#fmt("use of undeclared identifier: \
%s::%s",
#fmt("unresolved name: %s::%s",
*(*self.atom_table).atoms_to_str
((*module_path_atoms).get()),
*(*self.atom_table).atom_to_str
@ -3700,8 +3699,7 @@ class Resolver {
NoNameDefinition {
// We failed to resolve the name. Report an error.
self.session.span_err(path.span,
#fmt("use of undeclared identifier: \
%s::%s",
#fmt("unresolved name: %s::%s",
*(*self.atom_table).atoms_to_str
((*module_path_atoms).get()),
*(*self.atom_table).atom_to_str
@ -3806,8 +3804,7 @@ class Resolver {
}
none {
self.session.span_err(expr.span,
#fmt("use of undeclared \
identifier '%s'",
#fmt("unresolved name: %s",
connect(path.idents.map(|x| *x),
"::")));
}