Skip to content

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

Merged
bors merged 4 commits into
rust-lang:masterfrom
CraftSpider:79669
Jan 8, 2021
Merged

Make sure rust-call errors occur correctly for traits#79675
bors merged 4 commits into
rust-lang:masterfrom
CraftSpider:79669

Conversation

@CraftSpider

Copy link
Copy Markdown
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
Copy Markdown
Contributor

r? @estebank

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

@rust-highfiverust-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
Copy Markdown
ContributorAuthor

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

@jyn514jyn514 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
Copy Markdown
Member

r? @oli-obk

@rust-highfiverust-highfive assigned oli-obk and unassigned estebankJan 8, 2021
@estebank

Copy link
Copy Markdown
Contributor

@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
Copy Markdown
Contributor

r? @estebank@bors r+ rollup

@bors

bors commented Jan 8, 2021

Copy link
Copy Markdown
Collaborator

📌 Commit d41122a has been approved by estebank

@rust-highfiverust-highfive assigned estebank and unassigned oli-obkJan 8, 2021
@borsbors 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
@JohnTitorJohnTitor mentioned this pull request Jan 8, 2021
@camelid

Copy link
Copy Markdown
Member

(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:masterJan 8, 2021
@rustbotrustbot added this to the 1.51.0 milestone Jan 8, 2021
@wesleywiserwesleywiser 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
Copy Markdown
Contributor

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

@apirainoapiraino removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Jan 14, 2021
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant 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

@CraftSpider@rust-highfive@jyn514@estebank@bors@camelid@apiraino@oli-obk@wesleywiser@rustbot