-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Remove some explicit self.infcx
for FnCtxt
, which already derefs into InferCtxt
#99615
Remove some explicit self.infcx
for FnCtxt
, which already derefs into InferCtxt
#99615
Conversation
r? @fee1-dead (rust-highfive has picked a reviewer for you, use r? to override) |
r? @lcnr who has been thinking about I guess alternatively, we could remove the autoderef behavior of |
I think |
i could see us having We could then either have edit: Actually I think the changes from |
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.
🤔 it might be worth it to remove the deref to InferCtxt
from the FnCtxt
but i think generally this doesn't matter too much.
r=me after my nit
b496658
to
aaa9989
Compare
@bors r=lcnr |
Rollup of 7 pull requests Successful merges: - rust-lang#98211 (Implement `fs::get_path` for FreeBSD.) - rust-lang#99353 (Slightly improve mismatched GAT where clause error) - rust-lang#99593 (Suggest removing the tuple struct field for the unwrapped value) - rust-lang#99615 (Remove some explicit `self.infcx` for `FnCtxt`, which already derefs into `InferCtxt`) - rust-lang#99711 (Remove reachable coverage without counters) - rust-lang#99718 (Avoid `&str`/`Symbol` to `String` conversions) - rust-lang#99720 (Sync rustc_codegen_cranelift) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Rollup of 7 pull requests Successful merges: - rust-lang#98211 (Implement `fs::get_path` for FreeBSD.) - rust-lang#99353 (Slightly improve mismatched GAT where clause error) - rust-lang#99593 (Suggest removing the tuple struct field for the unwrapped value) - rust-lang#99615 (Remove some explicit `self.infcx` for `FnCtxt`, which already derefs into `InferCtxt`) - rust-lang#99711 (Remove reachable coverage without counters) - rust-lang#99718 (Avoid `&str`/`Symbol` to `String` conversions) - rust-lang#99720 (Sync rustc_codegen_cranelift) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
The use of
self.infcx.method_on_infcx
vsself.method_on_infcx
whenself
is aFnCtxt
is a bit inconsistent, so I'm moving someself.infcx
usages I found to just use autoderef