-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Replace format flags u32 by enums and bools. #106806
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
I'm in favour of this, but it's worth mentioning the comment I brought up in #99138 -- because the debug-hex flag doesn't expose a proper API beyond the deprecated |
That doesn't change. This only changes the internal representation in Rustc. The representation in std still has the same flags field with the same bits. |
Ah nice, so you've already handled that. Awesome work. 👍🏻 |
☔ The latest upstream changes (presumably #106745) made this pull request unmergeable. Please resolve the merge conflicts. |
3d58fbc
to
be69002
Compare
Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
r? @oli-obk |
@bors r+ rollup |
Rollup of 9 pull requests Successful merges: - rust-lang#106806 (Replace format flags u32 by enums and bools.) - rust-lang#107194 (Remove dependency on slice_internals feature in rustc_ast) - rust-lang#107234 (Revisit fix_is_ci_llvm_available logic) - rust-lang#107316 (Update snap from `1.0.1` to `1.1.0`) - rust-lang#107321 (solver comments + remove `TyCtxt::evaluate_goal`) - rust-lang#107332 (Fix wording from `rustbuild` to `bootstrap`) - rust-lang#107347 (reduce rightward-drift) - rust-lang#107352 (compiler: Fix E0587 explanation) - rust-lang#107357 (Fix infinite loop in rustdoc get_all_import_attributes function) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Rollup of 9 pull requests Successful merges: - rust-lang#106806 (Replace format flags u32 by enums and bools.) - rust-lang#107194 (Remove dependency on slice_internals feature in rustc_ast) - rust-lang#107234 (Revisit fix_is_ci_llvm_available logic) - rust-lang#107316 (Update snap from `1.0.1` to `1.1.0`) - rust-lang#107321 (solver comments + remove `TyCtxt::evaluate_goal`) - rust-lang#107332 (Fix wording from `rustbuild` to `bootstrap`) - rust-lang#107347 (reduce rightward-drift) - rust-lang#107352 (compiler: Fix E0587 explanation) - rust-lang#107357 (Fix infinite loop in rustdoc get_all_import_attributes function) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This gets rid of the
flags: u32
field where each bit has a special meaning, and replaces it by simple enums and booleans.Part of #99012