about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-07-18 13:59:05 +0000
committerbors <bors@rust-lang.org>2022-07-18 13:59:05 +0000
commit144227dae949fb98896a2ba077d8fe7f36c3238e (patch)
tree6e95287aa9fc1ea8fbf1b787f86b768e296932c6 /compiler/rustc_codegen_gcc
parent9ed0bf9f2bd63933785fb8a380c177d2d70e88ec (diff)
parent864d2f35280aadeaf63f6e7efa483e173ebd62f6 (diff)
downloadrust-144227dae949fb98896a2ba077d8fe7f36c3238e.tar.gz
rust-144227dae949fb98896a2ba077d8fe7f36c3238e.zip
Auto merge of #99232 - lcnr:no-bound-vars-check, r=jackh726
`replace_bound_vars` fast path: check predicates, don't check consts

split out from #98900

`ty::Const` doesn't have precomputed type flags, so
computing `has_vars_bound_at_or_above` for constants
requires us to visit the const and its contained types
and constants. A noop fold should be pretty much equally as
fast so removing it prevents us from walking the constant twice
in case it contains bound vars.

r? `@jackh726`
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions