about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src/collect.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-06-06 01:33:14 +0000
committerbors <bors@rust-lang.org>2024-06-06 01:33:14 +0000
commitd0ccb5413ee2d9d40b574ad7998ffa866811d3f8 (patch)
tree2e4cf828097d3279669e7ed814523d0f19108e9d /compiler/rustc_hir_analysis/src/collect.rs
parent72fdf913c53dd0e75313ba83e4aa80df3f6e2871 (diff)
parenta0358f44b33301e28070327eae7804a88a912b15 (diff)
downloadrust-d0ccb5413ee2d9d40b574ad7998ffa866811d3f8.tar.gz
rust-d0ccb5413ee2d9d40b574ad7998ffa866811d3f8.zip
Auto merge of #122505 - oli-obk:visit_nested_body2, r=tmiasko
Don't walk the bodies of free constants for reachability.

follow-up to #122371

cc #119214

This avoids codegening items (e.g. functions) that are only used during const eval, but do not reach their final constant value (e.g. via function pointers).

r? `@tmiasko`
Diffstat (limited to 'compiler/rustc_hir_analysis/src/collect.rs')
0 files changed, 0 insertions, 0 deletions