Skip to content

use body's param-env when checking if type needs drop - #99384

Merged
bors merged 1 commit into
rust-lang:masterfrom
compiler-errors:issue-99375
Jul 19, 2022
Merged

use body's param-env when checking if type needs drop#99384
bors merged 1 commit into
rust-lang:masterfrom
compiler-errors:issue-99375

Conversation

@compiler-errors

Copy link
Copy Markdown
Contributor

The type comes from the body, so we should be using the body's param-env, as opposed to the ADT's param env, because we know less in the latter compared to the former.

Fixes#99375

@rustbotrustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Jul 17, 2022
@rustbot

Copy link
Copy Markdown
Collaborator

Some changes occurred to MIR optimizations

cc @rust-lang/wg-mir-opt

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @wesleywiser

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 17, 2022
@papricasix

Copy link
Copy Markdown

@compiler-errors Thank you very much! You guys are awesome!

@oli-obk

Copy link
Copy Markdown
Contributor

r? @oli-obk

@bors r+ rollup

@bors

bors commented Jul 18, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit 6d2bd54 has been approved by oli-obk

It is now in the queue for this repository.

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 18, 2022
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jul 18, 2022
use body's param-env when checking if type needs drop
The type comes from the body, so we should be using the body's param-env, as opposed to the ADT's param env, because we know less in the latter compared to the former.
Fixesrust-lang#99375
bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 19, 2022
…askrgr
Rollup of 9 pull requests
Successful merges:
- rust-lang#98028 (Add E0790 as more specific variant of E0283)
- rust-lang#99384 (use body's param-env when checking if type needs drop)
- rust-lang#99401 (Avoid `Symbol` to `&str` conversions)
- rust-lang#99419 (Stabilize `core::task::ready!`)
- rust-lang#99435 (Revert "Stabilize $$ in Rust 1.63.0")
- rust-lang#99438 (Improve suggestions for `NonZeroT` <- `T` coercion error)
- rust-lang#99441 (Update mdbook)
- rust-lang#99453 (:arrow_up: rust-analyzer)
- rust-lang#99457 (use `par_for_each_in` in `par_body_owners` and `collect_crate_mono_items`)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 3147392 into rust-lang:masterJul 19, 2022
@rustbotrustbot added this to the 1.64.0 milestone Jul 19, 2022
@ghostghost mentioned this pull request Jul 21, 2022
@compiler-errors
compiler-errors deleted the issue-99375 branch August 11, 2023 20:05
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(nightly) internal compiler error: union fields that need dropping should be impossible

7 participants

@compiler-errors@rustbot@rust-highfive@papricasix@oli-obk@bors@wesleywiser