Skip to content

Harden bad placeholder checks on statics/consts #97508

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

Merged
merged 1 commit into from
Jun 14, 2022

Conversation

JohnTitor
Copy link
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>
@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label May 29, 2022
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 29, 2022
@pnkfelix
Copy link
Member

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Jun 13, 2022

📌 Commit 344feef has been approved by pnkfelix

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:master Jun 14, 2022
@rustbot rustbot 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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant 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