Skip to content

Rename traits_in_crate query to traits #111870

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

Merged
merged 1 commit into from
May 24, 2023

Conversation

WaffleLapkin
Copy link
Member

@WaffleLapkin WaffleLapkin commented May 23, 2023

NOTE: Not named just traits due to a naming conflict.

This can, in fact, be easily avoided.

@rustbot
Copy link
Collaborator

rustbot commented May 23, 2023

r? @b-naber

(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 May 23, 2023
@@ -1278,7 +1278,7 @@ rustc_queries! {

query codegen_select_candidate(
key: (ty::ParamEnv<'tcx>, ty::PolyTraitRef<'tcx>)
) -> Result<&'tcx ImplSource<'tcx, ()>, traits::CodegenObligationError> {
) -> Result<&'tcx ImplSource<'tcx, ()>, traits_::CodegenObligationError> {
Copy link
Member

Choose a reason for hiding this comment

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

idk if it's better to call it traits_ or just use crate::traits everywhere here... Or just import all these keys directly.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, good call. traits_ is likely the worst option here, I'll try crate::traits/just importing items.

Copy link
Member

Choose a reason for hiding this comment

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

whichever one is better, r=me

@WaffleLapkin
Copy link
Member Author

@bors r=compiler-errors

@bors
Copy link
Collaborator

bors commented May 23, 2023

📌 Commit cc1ec49 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 May 23, 2023
bors added a commit to rust-lang-ci/rust that referenced this pull request May 24, 2023
…iaskrgr

Rollup of 5 pull requests

Successful merges:

 - rust-lang#111861 (Don't ICE on return-type notation when promoting trait preds to associated type bounds)
 - rust-lang#111864 (Always require closure parameters to be `Sized`)
 - rust-lang#111870 (Rename `traits_in_crate` query to `traits`)
 - rust-lang#111880 (Don't ICE when computing PointerLike trait when region vars are in param-env)
 - rust-lang#111887 (Add regression tests for pretty-printing inherent projections)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 783bea9 into rust-lang:master May 24, 2023
@rustbot rustbot added this to the 1.71.0 milestone May 24, 2023
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.

5 participants