rustc doesn't complain if extern rlib is missing #68417
Labels
A-frontend
Area: Compiler frontend (errors, parsing and HIR)
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I just came across a weird case where rustc would not warn that a given extern dependency could not be found. I believe it should just warn the user or throw an error in that case instead of silently ignoring the error. It seems like the dependencies are only checked on a per-use basis whereas I believe being more strict here would probably not harm and help users find issues earlier.
Reproducer
What happened
It did compile my trivial program without any issues.
Expected output
The compiler should have warned or thrown an error about the missing
something
dependency. Alternatively warned about an unused dependency that was provided.The text was updated successfully, but these errors were encountered: