unused attribute warning when using multiple crate_type #95902
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=cfb35aa70ccef56dfbb931a7c093d42b
The current output is:
Ideally there should be no output. When using command line arguments instead of the crate_type attributes, there is no output.
Note that the compilation process is successful: even with the warning, both an dylib and a rlib is produced.
May be related to #92933.
Tested with rustc 1.60.0 (7737e0b 2022-04-04).
The text was updated successfully, but these errors were encountered: