private-dependency
warnings that should not be generated
#122756
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
Build command:
rustc --crate-type rlib foo.rs
Build command:
rustc --crate-type rlib bar.rs --extern priv:foo=libfoo.rlib -Zunstable-options
Build command: `rustc --crate-type rlib baz.rs -L all=. '.
I expected to see this happen: no warning message
Instead, this happened:
But if you take
rustc --crate-type rlib baz.rs -L all=. --extern foo
then there will be no warning message, or adjust the statement inbaz.rs
as follows, and there will be no warning messageMeta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: