-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Some rustc_transmute
cleanups
#137776
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Some rustc_transmute
cleanups
#137776
Conversation
`TransmuteTypeEnv` only needs a `TyCtxt`, not an `InferCtxt`.
This was hiding some genuine sins, including unused arguments in numerous functions/methods (incl. trait methods), and some unnecessary computation.
By either removing the function, or change the attribute to something more precise.
Some changes occurred to the core trait solver cc @rust-lang/initiative-trait-system-refactor These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
Best reviewed one commit at a time. |
That is intentional. The PR removes some unnecessary crate dependencies. |
@bors r+ |
…ps, r=jswrenn Some `rustc_transmute` cleanups A number of small things that can be removed. r? `@jswrenn`
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#136503 (Tweak output of const panic diagnostic) - rust-lang#137390 (tests: fix up new test for nocapture -> capture(none) change) - rust-lang#137617 (Introduce `feature(generic_const_parameter_types)`) - rust-lang#137719 (Add missing case explanation for doc inlined re-export of doc hidden item) - rust-lang#137763 (Use `mk_ty_from_kind` a bit less, clean up lifetime handling in borrowck) - rust-lang#137769 (Do not yeet `unsafe<>` from type when formatting unsafe binder) - rust-lang#137776 (Some `rustc_transmute` cleanups) - rust-lang#137800 (Remove `ParamEnv::without_caller_bounds`) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#137776 - nnethercote:rustc_transmute-cleanups, r=jswrenn Some `rustc_transmute` cleanups A number of small things that can be removed. r? ``@jswrenn``
…rcote Add `#[cfg(test)]` for Transition in dfa in `rustc_transmute` `Transition` is only used in the `Transitions::insert` in test after rust-lang#137776 Detected by rust-lang#128637
Rollup merge of rust-lang#138644 - mu001999-contrib:add-cfg, r=nnethercote Add `#[cfg(test)]` for Transition in dfa in `rustc_transmute` `Transition` is only used in the `Transitions::insert` in test after rust-lang#137776 Detected by rust-lang#128637
A number of small things that can be removed.
r? @jswrenn