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

Do not define opaque types when selecting impls #126258

Merged
merged 3 commits into from
Jun 11, 2024

Conversation

oli-obk
Copy link
Contributor

@oli-obk oli-obk commented Jun 11, 2024

fixes #126117

r? @lcnr for inconsistency with next solver

@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. labels Jun 11, 2024
@oli-obk oli-obk added the beta-nominated Nominated for backporting to the compiler in the beta channel. label Jun 11, 2024
@oli-obk
Copy link
Contributor Author

oli-obk commented Jun 11, 2024

probably needs to be backported to beta (I think we cut this weekend?)

@@ -1,10 +1,6 @@
// Another example from issue #84660, this time weaponized as a safe transmute: an opaque type in an
// impl header being accepted was used to create unsoundness.

//@ revisions: current next
//@ ignore-compare-mode-next-solver (explicit revisions)
//@[next] compile-flags: -Znext-solver
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please keep these revisions

//@ revisions: current next
//@ ignore-compare-mode-next-solver (explicit revisions)
//@[next] compile-flags: -Znext-solver
//@check-pass
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

@@ -1,10 +1,6 @@
#![feature(type_alias_impl_trait)]
#![allow(dead_code)]

//@ revisions: current next
//@ ignore-compare-mode-next-solver (explicit revisions)
//@[next] compile-flags: -Znext-solver
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

Copy link
Contributor

@lcnr lcnr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me after undoing the revision changes

@oli-obk
Copy link
Contributor Author

oli-obk commented Jun 11, 2024

@bors r=lcnr

@bors
Copy link
Contributor

bors commented Jun 11, 2024

📌 Commit 03fa9b8 has been approved by lcnr

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 Jun 11, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 11, 2024
Rollup of 5 pull requests

Successful merges:

 - rust-lang#126186 (Migrate `run-make/multiple-emits` to `rmake.rs`)
 - rust-lang#126236 (Delegation: fix ICE on recursive delegation)
 - rust-lang#126254 (Remove ignore-cross-compile directive from ui/macros/proc_macro)
 - rust-lang#126258 (Do not define opaque types when selecting impls)
 - rust-lang#126265 (interpret: ensure we check bool/char for validity when they are used in a cast)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 2a94a5b into rust-lang:master Jun 11, 2024
6 checks passed
@rustbot rustbot added this to the 1.81.0 milestone Jun 11, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Jun 11, 2024
Rollup merge of rust-lang#126258 - oli-obk:recursive_rpit, r=lcnr

Do not define opaque types when selecting impls

fixes rust-lang#126117

r? `@lcnr` for inconsistency with next solver
@oli-obk oli-obk deleted the recursive_rpit branch June 12, 2024 10:03
@apiraino
Copy link
Contributor

Beta backport approved as per compiler team on Zulip. A backport PR will be authored by the release team at the end of the current development cycle.

@rustbot label +beta-accepted

@rustbot rustbot added the beta-accepted Accepted for backporting to the compiler in the beta channel. label Jun 13, 2024
@cuviper cuviper removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Jun 14, 2024
@cuviper cuviper modified the milestones: 1.81.0, 1.80.0 Jun 14, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 14, 2024
[beta] backports and stage0 bump

- Bump stage0 to 1.79.0
- Do not define opaque types when selecting impls rust-lang#126258
- Remove failing GUI test to stop blocking CI until it is fixed rust-lang#126445

r? cuviper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta-accepted Accepted for backporting to the compiler in the beta channel. 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.

Regression in nightly-2024-05-27
6 participants