Skip to content

Don't call fn_arg_names query for non-fn foreign items in resolver#130033

Merged
bors merged 1 commit into
rust-lang:masterfrom
compiler-errors:foreign-fn-types
Sep 16, 2024
Merged

Don't call fn_arg_names query for non-fn foreign items in resolver#130033
bors merged 1 commit into
rust-lang:masterfrom
compiler-errors:foreign-fn-types

Conversation

@compiler-errors

Copy link
Copy Markdown
Contributor

Fixes #130015

@rustbot

rustbot commented Sep 6, 2024

Copy link
Copy Markdown
Collaborator

r? @BoxyUwU

rustbot has assigned @BoxyUwU.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@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 Sep 6, 2024
@rust-log-analyzer

This comment has been minimized.

|
help: you might have meant to use the associated type
|
LL | impl Foo for Self::Bar {}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Lol that is incorrect

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, but in the resolver we don't really have the right context to avoid this suggestion anyways.

@BoxyUwU

BoxyUwU commented Sep 16, 2024

Copy link
Copy Markdown
Member

@bors r+ rollup

@bors

bors commented Sep 16, 2024

Copy link
Copy Markdown
Collaborator

📌 Commit 29f31c5 has been approved by BoxyUwU

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 Sep 16, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 16, 2024
…iaskrgr

Rollup of 3 pull requests

Successful merges:

 - rust-lang#130033 (Don't call `fn_arg_names` query for non-`fn` foreign items in resolver)
 - rust-lang#130282 (Do not report an excessive number of overflow errors for an ever-growing deref impl)
 - rust-lang#130437 (Avoid crashing on variadic functions when producing arg-mismatch errors)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 7be15b8 into rust-lang:master Sep 16, 2024
@rustbot rustbot added this to the 1.83.0 milestone Sep 16, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Sep 16, 2024
Rollup merge of rust-lang#130033 - compiler-errors:foreign-fn-types, r=BoxyUwU

Don't call `fn_arg_names` query for non-`fn` foreign items in resolver

Fixes rust-lang#130015
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: does not have a "fn_arg_names"'

6 participants