about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2022-07-14 12:35:09 +0200
committerlcnr <rust@lcnr.de>2022-07-14 12:35:09 +0200
commit39a990d2f126b4751bd7821f26d166e07b073915 (patch)
tree067840f36ff81c3334de766f0421a865eb984d7c /compiler/rustc_codegen_llvm/src/llvm_util.rs
parent1c7b36d4db582cb47513a6c7176baaec1c3346ab (diff)
downloadrust-39a990d2f126b4751bd7821f26d166e07b073915.tar.gz
rust-39a990d2f126b4751bd7821f26d166e07b073915.zip
remove `ct.has_vars_bound_at_or_above` calls
`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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions