Currently, marking a dependency private does not automatically make all its child dependencies private. Resolve this by making its children private by default as well. This also resolves some FIXMEs for tests that are intended to fail but previously passed. [1]: https://github.com/rust-lang/rust/pull/135501#issuecomment-2620242419
15 lines
386 B
Rust
15 lines
386 B
Rust
//@ aux-crate:priv:reexport=reexport.rs
|
|
//@ compile-flags: -Zunstable-options
|
|
|
|
// Checks the behavior of a reexported item from a private dependency.
|
|
|
|
#![crate_type = "lib"]
|
|
#![deny(exported_private_dependencies)]
|
|
|
|
extern crate reexport;
|
|
|
|
pub fn leaks_priv() -> reexport::Shared {
|
|
//~^ ERROR type `Shared` from private dependency 'shared' in public interface
|
|
reexport::Shared
|
|
}
|