about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-05-11 22:15:30 +0000
committerbors <bors@rust-lang.org>2025-05-11 22:15:30 +0000
commit6812af9821c86b344c6d9e3584681f8589da6801 (patch)
treee11855f93738c9bf4330bc21ab29bcac591a4a29 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parentce7e97f7371af47e0786f74aa169f6ac9473ff4e (diff)
parent8c8225afe8777a93aa635a252fb6a785d30d0527 (diff)
downloadrust-6812af9821c86b344c6d9e3584681f8589da6801.tar.gz
rust-6812af9821c86b344c6d9e3584681f8589da6801.zip
Auto merge of #140842 - tmiasko:print-mono-items, r=saethlin
Remove mono item collection strategy override from -Zprint-mono-items

Previously `-Zprint-mono-items` would override the mono item collection
strategy. When debugging one doesn't want to change the behaviour, so
this was counter productive. Additionally, the produced behaviour was
artificial and might never arise without using the option in the first
place (`-Zprint-mono-items=eager` without `-Clink-dead-code`).  Finally,
the option was incorrectly marked as `UNTRACKED`.

Resolve those issues, by turning `-Zprint-mono-items` into a boolean
flag that prints results of mono item collection without changing the
behaviour of mono item collection.

For codegen-units test incorporate `-Zprint-mono-items` flag directly
into compiletest tool.

Test changes are mechanical. `-Zprint-mono-items=lazy` was removed
without additional changes, and `-Zprint-mono-items=eager` was turned
into `-Clink-dead-code`.  Linking dead code disables internalization, so
tests have been updated accordingly.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions