-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Account for bounds and asociated items when denying _
#69148
Conversation
r? @cramertj (rust_highfive has picked a reviewer for you, use r? to override) |
r? @oli-obk |
_
in type parameters_
in type parameters
_
in type parameters_
4568dbf
to
d3ad814
Compare
ping |
discussed at T-compiler meeting. declined for beta backport. "current decision: no backport because too big, but let us know if you want us to revisit the question" |
@pnkfelix saw the discussion, sounds fair. There's a very small fix that would cause duplicated output but would never ICE at the cost of the extra verbosity. Should I go ahead and do that? |
rust-lang#69148 has a proper fix, but it is too big to backport. This change avoids the ICE by actually emitting an appropriate error. The output will be duplicated in some cases, but that's better than the avoidable ICE.
@estebank Sorry, I don't think I have the time to invest into understanding this as well as I would want to to get to r+. :( |
@bors r+ |
📌 Commit d3ad814a276964dfcf293904f76f16494e54d4eb has been approved by |
…ceholder-type, r=Centril Backport only: avoid ICE on bad placeholder type rust-lang#69148 has a proper fix, but it is too big to backport. This change avoids the ICE by actually emitting an appropriate error. The output will be duplicated in some cases, but that's better than the avoidable ICE. r? @Centril
☔ The latest upstream changes (presumably #69507) made this pull request unmergeable. Please resolve the merge conflicts. |
d3ad814
to
c6cfcf9
Compare
@bors r=oli-obk rebased on top of master with the other PR reverted |
📌 Commit c6cfcf9 has been approved by |
Account for bounds and asociated items when denying `_` Fix rust-lang#68801, rust-lang#69204. Follow up to rust-lang#67597 and rust-lang#68071. Output for the original ICE report: ``` Checking vinoteca v5.0.0 (/Users/ekuber/workspace/vinoteca) error[E0121]: the type placeholder `_` is not allowed within types on item signatures --> src/producers.rs:43:70 | 43 | pub fn top<Table: diesel::Table + diesel::query_dsl::InternalJoinDsl<_, diesel::query_source::joins::Inner, _>>(table: Table, limit: usize, connection: DbConn) -> RestResult<Vec<TopWineType>> { | ^ not allowed in type signatures ^ not allowed in type signatures error: aborting due to previous error ```
☀️ Test successful - checks-azure |
…r=Centril Account for bad placeholder types in where clauses Fix rust-lang#70291. Follow up to rust-lang#69148.
…r=Centril Account for bad placeholder types in where clauses Fix rust-lang#70291. Follow up to rust-lang#69148.
…r=Centril Account for bad placeholder types in where clauses Fix rust-lang#70291. Follow up to rust-lang#69148.
Fix #68801, #69204. Follow up to #67597 and #68071.
Output for the original ICE report: