-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Revert "Implement allow-by-default multiple_supertrait_upcastable
lint"
#106248
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
Conversation
r? @jackh726 (rustbot has picked a reviewer for you, use r? to override) |
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
Please add a regression test if reverting (fb61a2ce2b69fb7d16b3b85ac90890281f62f83a). |
@bors r=jackh726 |
…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
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 spuriouswhere_clause_object_safety
errors. The implementation ofwhere_clause_object_safety
assumes we only check whether a trait is object safe when somebody actually uses that trait withdyn
. However the implementation ofmultiple_supertrait_upcastable
added in the problematic PR involves checking every trait for whether it is object-safe.FYI @nbdd0121 @compiler-errors