Skip to content
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

Revert "Implement allow-by-default multiple_supertrait_upcastable lint" #106248

Merged
merged 3 commits into from
Dec 31, 2022

Conversation

dtolnay
Copy link
Member

@dtolnay dtolnay commented Dec 29, 2022

This is a clean revert of #105484.

I confirmed that reverting that PR fixes the regression reported in #106247. I can't say I understand what this code is doing, but maybe it can be re-landed with a different implementation. Edit: #106247 (comment) has an explanation of why #105484 ends up surfacing spurious where_clause_object_safety errors. The implementation of where_clause_object_safety assumes we only check whether a trait is object safe when somebody actually uses that trait with dyn. However the implementation of multiple_supertrait_upcastable added in the problematic PR involves checking every trait for whether it is object-safe.

FYI @nbdd0121 @compiler-errors

@rustbot
Copy link
Collaborator

rustbot commented Dec 29, 2022

r? @jackh726

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added 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. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Dec 29, 2022
@rustbot
Copy link
Collaborator

rustbot commented Dec 29, 2022

Hey! It looks like you've submitted a new PR for the library teams!

If this PR contains changes to any rust-lang/rust public library APIs then please comment with @rustbot label +T-libs-api -T-libs to tag it appropriately. If this PR contains changes to any unstable APIs please edit the PR description to add a link to the relevant API Change Proposal or create one if you haven't already. If you're unsure where your change falls no worries, just leave it as is and the reviewer will take a look and make a decision to forward on if necessary.

Examples of T-libs-api changes:

  • Stabilizing library features
  • Introducing insta-stable changes such as new implementations of existing stable traits on existing stable types
  • Introducing new or changing existing unstable library APIs (excluding permanently unstable features / features without a tracking issue)
  • Changing public documentation in ways that create new stability guarantees
  • Changing observable runtime behavior of library APIs

@dtolnay dtolnay removed the T-libs Relevant to the library team, which will review and decide on the PR/issue. label Dec 29, 2022
@jackh726
Copy link
Member

I think we should land this and take our time with #106253.

@bors r+

@bors
Copy link
Contributor

bors commented Dec 30, 2022

📌 Commit 06ec0bf has been approved by jackh726

It is now in the queue for this repository.

@bors bors 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 Dec 30, 2022
@nbdd0121
Copy link
Contributor

Please add a regression test if reverting (fb61a2ce2b69fb7d16b3b85ac90890281f62f83a).

@dtolnay
Copy link
Member Author

dtolnay commented Dec 30, 2022

@bors r=jackh726

@bors
Copy link
Contributor

bors commented Dec 30, 2022

📌 Commit 4271ed4 has been approved by jackh726

It is now in the queue for this repository.

bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 31, 2022
…mpiler-errors

Rollup of 9 pull requests

Successful merges:

 - rust-lang#105903 (Unify id-based thread parking implementations)
 - rust-lang#106232 (CFI: Monomorphize transparent ADTs before typeid)
 - rust-lang#106248 (Revert "Implement allow-by-default `multiple_supertrait_upcastable` lint")
 - rust-lang#106286 (Make tidy errors red)
 - rust-lang#106295 (Extend scraped examples layout GUI test for position of buttons)
 - rust-lang#106305 ( bootstrap: Get rid of tail_args in stream_cargo)
 - rust-lang#106310 (Dont use `--merge-base` during bootstrap formatting subcommand)
 - rust-lang#106314 (Fix panic on `x build --help`)
 - rust-lang#106317 (Only deduplicate stack traces for good path bugs)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 5b74a33 into rust-lang:master Dec 31, 2022
@rustbot rustbot added this to the 1.68.0 milestone Dec 31, 2022
@dtolnay dtolnay deleted the revertupcastlint branch January 8, 2023 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 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.

5 participants