about summary refs log tree commit diff
path: root/compiler/rustc_target/src/target_features.rs
diff options
context:
space:
mode:
authorTrevor Gross <t.gross35@gmail.com>2025-06-09 12:17:54 -0500
committerGitHub <noreply@github.com>2025-06-09 12:17:54 -0500
commitfacc5da22cea0455e11d8385ab34c8a26787e529 (patch)
treed5e40760ad94c80b2f04e0f8f41585048269c705 /compiler/rustc_target/src/target_features.rs
parentab87ed150bb3435e8d5487a6e950045f5215cecf (diff)
parent33beaba7c8b78e9d4908e98dd1d6b4e15c6ba6f8 (diff)
downloadrust-facc5da22cea0455e11d8385ab34c8a26787e529.tar.gz
rust-facc5da22cea0455e11d8385ab34c8a26787e529.zip
Rollup merge of #142208 - Urgau:dead_code-const_, r=petrochenkov
Always consider `const _` items as live for dead code analysis

This PR alters dead code analysis to always consider `const _: () = { ... };` to be live.

This doesn't address the `_name` pattern from https://github.com/rust-lang/rust/issues/142075.

Fixes https://github.com/rust-lang/rust/issues/142104
Diffstat (limited to 'compiler/rustc_target/src/target_features.rs')
0 files changed, 0 insertions, 0 deletions