rustc: Fix double-reporting of private item errors. Un-XFAIL private-item-simple.rs.
This commit is contained in:
parent
f7681f9236
commit
31af60b257
@ -4159,11 +4159,6 @@ fn resolve_module_relative_path(path: @path,
|
||||
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 @@ fn resolve_crate_relative_path(path: @path,
|
||||
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) => {
|
||||
|
@ -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() {}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user