Rollup merge of #138139 - xizheyin:issue-137384, r=ChrisDenton

Emit warning while outputs is not exe and prints linkage info

cc #137384

```bash
$ rustc +stage1 /dev/null --print native-static-libs --crate-type staticlib  --emit metadata
warning: skipping link step due to conflict: cannot output linkage information without emitting executable

note: consider emitting executable to print link information

warning: 1 warning emitted
```
This commit is contained in:
Jacob Pratt 2025-05-29 04:49:40 +02:00 committed by GitHub
commit 86e53f09db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

Diff Content Not Available