0
0
mirror of https://github.com/rust-lang/rust.git synced 2024-11-30 11:53:52 +01:00

rustc: Fix double-reporting of private item errors. Un-XFAIL private-item-simple.rs.

This commit is contained in:
Patrick Walton 2012-09-05 16:21:13 -07:00
parent f7681f9236
commit 31af60b257
2 changed files with 0 additions and 15 deletions

View File

@ -4159,11 +4159,6 @@ struct Resolver {
xray) {
NoNameDefinition => {
// We failed to resolve the name. Report an error.
self.session.span_err(
path.span,
fmt!("unresolved name: %s::%s",
self.atoms_to_str((*module_path_atoms).get()),
self.session.str_of(name)));
return None;
}
ChildNameDefinition(def) | ImportNameDefinition(def) => {
@ -4212,11 +4207,6 @@ struct Resolver {
xray) {
NoNameDefinition => {
// We failed to resolve the name. Report an error.
self.session.span_err(
path.span,
fmt!("unresolved name: %s::%s", self.atoms_to_str(
(*module_path_atoms).get()),
self.session.str_of(name)));
return None;
}
ChildNameDefinition(def) | ImportNameDefinition(def) => {

View File

@ -1,8 +1,3 @@
// xfail-test
// xfail-fast
// This is xfail'd because two errors are reported instead of one.
mod a {
priv fn f() {}
}