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

Make sure rust-call errors occur correctly for traits #79675

Merged
merged 4 commits into from
Jan 8, 2021

Conversation

CraftSpider
Copy link
Contributor

Fixes #79669

Adds trait method resolution to the error, and adds UI tests to ensure it doesn't happen again. Opening as draft because I'm getting weird link errors from unrelated code on my machine, and want to see what CI thinks.

@rust-highfive
Copy link
Collaborator

r? @estebank

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 3, 2020
@CraftSpider CraftSpider marked this pull request as ready for review December 4, 2020 01:52
@CraftSpider
Copy link
Contributor Author

@estebank are you available to review this? Apologies if you're busy

@jyn514 jyn514 added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Jan 8, 2021
@jyn514
Copy link
Member

jyn514 commented Jan 8, 2021

r? @oli-obk

@rust-highfive rust-highfive assigned oli-obk and unassigned estebank Jan 8, 2021
@estebank
Copy link
Contributor

estebank commented Jan 8, 2021

@CraftSpider apologies for the delay. I spent the entirety of December offline, which is why I didn't review this (and the triaging team doesn't pick these up earlier because some weeks have to pass before then). Looking at this now.

@estebank
Copy link
Contributor

estebank commented Jan 8, 2021

r? @estebank @bors r+ rollup

@bors
Copy link
Contributor

bors commented Jan 8, 2021

📌 Commit d41122a has been approved by estebank

@rust-highfive rust-highfive assigned estebank and unassigned oli-obk Jan 8, 2021
@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 Jan 8, 2021
@camelid
Copy link
Member

camelid commented Jan 8, 2021

(and the triaging team doesn't pick these up earlier because some weeks have to pass before then)

Also, wg-triage is on break until next week :)

bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 8, 2021
Rollup of 7 pull requests

Successful merges:

 - rust-lang#79675 (Make sure rust-call errors occur correctly for traits)
 - rust-lang#80372 (Don't panic when an external crate can't be resolved)
 - rust-lang#80761 (handle generic trait methods in coverage-report tests)
 - rust-lang#80785 (rustc_ast_pretty: Remove `PrintState::insert_extra_parens`)
 - rust-lang#80791 (Fix type name in doc example for Iter and IterMut)
 - rust-lang#80794 (Use Option::map_or instead of `.map(..).unwrap_or(..)`)
 - rust-lang#80799 (Get rid of custom pretty-printing in rustdoc)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 0afd72e into rust-lang:master Jan 8, 2021
@rustbot rustbot added this to the 1.51.0 milestone Jan 8, 2021
@wesleywiser wesleywiser added the beta-nominated Nominated for backporting to the compiler in the beta channel. label Jan 8, 2021
@CraftSpider CraftSpider deleted the 79669 branch January 8, 2021 20:17
@apiraino
Copy link
Contributor

beta backport has been declined. Zulip discussion from the compiler team at this link.

@apiraino apiraino removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Jan 14, 2021
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.

ICE: Item being checked wasn't a function/closure
10 participants