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

Silence knock-down errors on [type error] bindings #106199

Merged
merged 1 commit into from
Dec 28, 2022

Conversation

estebank
Copy link
Contributor

@estebank estebank commented Dec 28, 2022

Fix #56036, fix #76589.

@rustbot
Copy link
Collaborator

rustbot commented Dec 28, 2022

r? @eholk

(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. labels Dec 28, 2022
@estebank estebank force-pushed the quiet-type-err-in-binding branch from 9d4297a to e5bd7ce Compare December 28, 2022 02:02
@estebank
Copy link
Contributor Author

r? @compiler-errors

@rustbot rustbot assigned compiler-errors and unassigned eholk Dec 28, 2022
@rust-log-analyzer

This comment was marked as resolved.

@estebank estebank force-pushed the quiet-type-err-in-binding branch from e5bd7ce to 6e972ab Compare December 28, 2022 02:12
@rust-log-analyzer

This comment has been minimized.

@@ -1,9 +1,13 @@
// The purpose of this test is not to validate the output of the compiler.
// Instead, it ensures the suggestion is generated without performing an arithmetic overflow.

struct S;
Copy link
Member

@compiler-errors compiler-errors Dec 28, 2022

Choose a reason for hiding this comment

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

Why did you change this UI test? I think the UI test was added to check for an ICE that resulted specifically from this combination of resolver errors.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because the error that produced the ICE would no longer emit with the correct propagation of [type error]. The relevant part seemed to be the error that I kept.

Copy link
Member

Choose a reason for hiding this comment

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

Hm, I'm not sure if this modified UI test is "faithful" to the ICE anymore, either, though. I'm tempted to leave it as-is even if the error output turns into basically nothing. Either that, or we should just yeet this test completely..

I guess I don't care strongly any way.

@estebank estebank force-pushed the quiet-type-err-in-binding branch from 6e972ab to 8e039b6 Compare December 28, 2022 02:27
@compiler-errors
Copy link
Member

r=me

@estebank
Copy link
Contributor Author

@bors r=compiler-errors

@bors
Copy link
Contributor

bors commented Dec 28, 2022

📌 Commit 8e039b6 has been approved by compiler-errors

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 28, 2022
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Dec 28, 2022
…, r=compiler-errors

Silence knock-down errors on `[type error]` bindings

Fix rust-lang#56036, fix rust-lang#76589.
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 28, 2022
…iaskrgr

Rollup of 6 pull requests

Successful merges:

 - rust-lang#106028 (docs/test: add UI test and long-form error docs for `E0461`)
 - rust-lang#106172 (Suggest `impl Iterator` when possible for `_` return type)
 - rust-lang#106173 (Deduplicate `op` methods)
 - rust-lang#106176 (Recover `fn` keyword as `Fn` trait in bounds)
 - rust-lang#106194 (rustdoc: combine common sidebar background color CSS rules)
 - rust-lang#106199 (Silence knock-down errors on `[type error]` bindings)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit d37cb3f into rust-lang:master Dec 28, 2022
@rustbot rustbot added this to the 1.68.0 milestone Dec 28, 2022
@estebank estebank deleted the quiet-type-err-in-binding branch November 9, 2023 05:14
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
6 participants