fix: Prevent public reexport of private item

This commit is contained in:
Shoyu Vanilla 2024-10-23 22:10:53 +09:00
parent f9935be013
commit 685fe4b8dc
4 changed files with 98 additions and 9 deletions

View file

@ -1025,7 +1025,7 @@ pub mod ast {
check_found_path(
r#"
mod bar {
mod foo { pub(super) struct S; }
mod foo { pub(crate) struct S; }
pub(crate) use foo::*;
}
$0
@ -1047,7 +1047,7 @@ $0
check_found_path(
r#"
mod bar {
mod foo { pub(super) struct S; }
mod foo { pub(crate) struct S; }
pub(crate) use foo::S as U;
}
$0