mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
fix: Prevent public reexport of private item
This commit is contained in:
parent
f9935be013
commit
685fe4b8dc
4 changed files with 98 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue