Skip to content

Harden bad placeholder checks on statics/consts - #97508

Merged
bors merged 1 commit into
rust-lang:masterfrom
JohnTitor:more-strict-placeholder-dyn-obj
Jun 14, 2022
Merged

Harden bad placeholder checks on statics/consts#97508
bors merged 1 commit into
rust-lang:masterfrom
JohnTitor:more-strict-placeholder-dyn-obj

Conversation

@JohnTitor

Copy link
Copy Markdown
Member

Resubmission of #89161
Fixes#88643

In #83739, I added a check for trait objects on statics/consts but it wasn't robust. is_suggestable_infer_ty fn does a more strict check and finds more bad placeholders. See #89161 (comment) for the more detailed explanation.

r? @pnkfelix as you're the reviewer of the previous PR

Co-authored-by: Fabian Wolff <fabian.wolff@alumni.ethz.ch>
@rustbotrustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label May 29, 2022
@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 29, 2022
@pnkfelix

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@bors

bors commented Jun 13, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit 344feef has been approved by pnkfelix

@JohnTitorJohnTitor mentioned this pull request Jun 13, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 13, 2022
Rollup of 4 pull requests
Successful merges:
- rust-lang#95211 (Improve parser diagnostics)
- rust-lang#95243 (Add Apple WatchOS compile targets)
- rust-lang#97385 (Add WIP stable MIR crate)
- rust-lang#97508 (Harden bad placeholder checks on statics/consts)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit aa71be1 into rust-lang:masterJun 14, 2022
@rustbotrustbot added this to the 1.63.0 milestone Jun 14, 2022
@JohnTitor
JohnTitor deleted the more-strict-placeholder-dyn-obj branch June 14, 2022 03:28
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-reviewStatus: Awaiting review from the assignee but also interested parties.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.

error: internal compiler error: compiler/rustc_passes/src/dead.rs:122:13: no type-dependent def for method

5 participants

@JohnTitor@pnkfelix@bors@rust-highfive@rustbot