Revert PR #30324, fixing a bug in which a public glob import can make preceding imports public (fixes #30159).
This commit is contained in:
parent
9a07087bc5
commit
7a69ee0c48
|
@ -798,9 +798,6 @@ impl<'a, 'b:'a, 'tcx:'b> ImportResolver<'a, 'b, 'tcx> {
|
|||
dest_import_resolution.is_public = is_public;
|
||||
self.add_export(module_, name, &dest_import_resolution);
|
||||
}
|
||||
} else {
|
||||
// FIXME #30159: This is required for backwards compatability.
|
||||
dest_import_resolution.is_public |= is_public;
|
||||
}
|
||||
|
||||
self.check_for_conflicts_between_imports_and_items(module_,
|
||||
|
|
|
@ -17,6 +17,10 @@ mod foo {
|
|||
|
||||
mod bar {
|
||||
use foo::bar::f as g; //~ ERROR unresolved import
|
||||
|
||||
use foo as f;
|
||||
pub use foo::*;
|
||||
}
|
||||
|
||||
use bar::f::f; //~ ERROR unresolved import
|
||||
fn main() {}
|
||||
|
|
Loading…
Reference in New Issue