-
Couldn't load subscription status.
- Fork 13.9k
Use Enabled{Lang,Lib}Feature instead of n-tuples
#132114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
r? @fee1-dead rustbot has assigned @fee1-dead. Use |
|
UI tests passed locally so @rustbot ready |
Instead of passing around random n-tuples of e.g. `(gate_name, attr_sp, since)`.
4ab1126 to
3528149
Compare
EnabledLangFeature, EnabledLibFeature and LangFeatureStability instead of n-tuples/Option<Symbol>Enabled{Lang,Lib}Feature instead of n-tuples
|
@rustbot ready |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@bors r+ rollup |
…iaskrgr Rollup of 3 pull requests Successful merges: - rust-lang#132114 (Use `Enabled{Lang,Lib}Feature` instead of n-tuples) - rust-lang#132163 (Update Fuchsia CI script for package serving) - rust-lang#132168 (Effects cleanup) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#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 rust-lang#132098 (comment) cc `@RalfJung.`
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, useEnabled{Lang,Lib}Featurestructs with named fields.Also did some minor code-golfing of involved iterator chains to hopefully make them easier to follow.
Follow-up to #132098 (comment) cc @RalfJung.