Skip to content

Unsupported query error now specifies if its unsupported for local or external crate #104675

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Nov 26, 2022

Conversation

SarthakSingh31
Copy link
Contributor

Fixes #101666.
I had to move keys.rs from rustc_query_impl to rustc_middle. I don't know if that is problematic. I couldn't think of any other way to get the needed information inside rustc_middle.

r? @jyn514

@rustbot rustbot added A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) 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 Nov 21, 2022
@Noratrieb
Copy link
Member

#103808 moves keys.rs already, so this is unproblematic.

@jyn514
Copy link
Member

jyn514 commented Nov 21, 2022

Looks great, thank you! I suspect we can improve the error message a bit further now we have more info available but this is already very helpful :)

@bors r+

@bors
Copy link
Collaborator

bors commented Nov 21, 2022

📌 Commit b8590cc3436f9ed1abfdd92c8490aef7dcbbe811 has been approved by jyn514

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 Nov 21, 2022
@bors
Copy link
Collaborator

bors commented Nov 24, 2022

☔ The latest upstream changes (presumably #103808) made this pull request unmergeable. Please resolve the merge conflicts.

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Nov 24, 2022
@jyn514
Copy link
Member

jyn514 commented Nov 24, 2022

@bors r+

@bors
Copy link
Collaborator

bors commented Nov 24, 2022

📌 Commit 1767f9f has been approved by jyn514

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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Nov 24, 2022
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Nov 26, 2022
Unsupported query error now specifies if its unsupported for local or external crate

Fixes rust-lang#101666.
I had to move `keys.rs` from `rustc_query_impl` to `rustc_middle`. I don't know if that is problematic. I couldn't think of any other way to get the needed information inside `rustc_middle`.

r? ``@jyn514``
bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 26, 2022
…iaskrgr

Rollup of 6 pull requests

Successful merges:

 - rust-lang#104121 (Refine `instruction_set` MIR inline rules)
 - rust-lang#104675 (Unsupported query error now specifies if its unsupported for local or external crate)
 - rust-lang#104839 (improve array_from_fn documenation)
 - rust-lang#104880 ([llvm-wrapper] adapt for LLVM API change)
 - rust-lang#104899 (rustdoc: remove no-op CSS `#help dt { display: block }`)
 - rust-lang#104906 (Remove AscribeUserTypeCx)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 42010a2 into rust-lang:master Nov 26, 2022
@rustbot rustbot added this to the 1.67.0 milestone Nov 26, 2022
@SarthakSingh31 SarthakSingh31 deleted the issue-101666 branch November 27, 2022 11:14
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) 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.

Give a better error message when a query isn't supported for a local / external crate
5 participants