rust/compiler/rustc_feature/src
Matthias Krüger 8207d89b5e
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.`
2024-10-26 06:29:47 +02:00
..
accepted.rs stabilize shorter-tail-lifetimes 2024-10-24 01:56:08 +08:00
builtin_attrs.rs Re-do recursive const stability checks 2024-10-25 20:31:40 +02:00
lib.rs Introduce Enabled{Lang,Lib}Feature 2024-10-25 10:30:37 +08:00
removed.rs rename lang feature lists to include LANG 2024-10-23 09:14:43 +01:00
tests.rs tidy: Re-enable check for inline unit tests 2020-12-12 19:18:44 +03:00
unstable.rs Rollup merge of #132114 - jieyouxu:features-bundle, r=fee1-dead 2024-10-26 06:29:47 +02:00