-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
The head ref may contain hidden characters: "just_\u{1F31F}traits\u{1F31F}_query"
Conversation
r? @b-naber (rustbot has picked a reviewer for you, use r? to override) |
@@ -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> { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
@bors r=compiler-errors |
…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
This can, in fact, be easily avoided.