about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/consts.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-10-26 06:29:47 +0200
committerGitHub <noreply@github.com>2024-10-26 06:29:47 +0200
commit8207d89b5e743b1c200a081d1556bb03174317db (patch)
treee18bc8f52722ff53ed960518bf62604adcdde6a2 /compiler/rustc_codegen_llvm/src/consts.rs
parenta06b7cbe21967a86050fa92dab843c8afda1c28e (diff)
parent3528149f735e801eb5710585d5f3b4fa73d6e1e5 (diff)
downloadrust-8207d89b5e743b1c200a081d1556bb03174317db.tar.gz
rust-8207d89b5e743b1c200a081d1556bb03174317db.zip
Rollup merge of #132114 - jieyouxu:features-bundle, r=fee1-dead
Use `Enabled{Lang,Lib}Feature`  instead of n-tuples

Instead of passing around e.g. `(gate_name, attr_span, stable_since)` 3-tuples for enabled lang features or `(gate_name, attr_span)` 2-tuples for enabled lib features, use `Enabled{Lang,Lib}Feature` structs with named fields.

Also did some minor code-golfing of involved iterator chains to hopefully make them easier to follow.

Follow-up to https://github.com/rust-lang/rust/pull/132098#issuecomment-2434523431 cc `@RalfJung.`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/consts.rs')
0 files changed, 0 insertions, 0 deletions