Remove Deref<Target = TyCtxt> from QueryCtxt#151626
Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom Jan 27, 2026
Merged
Remove Deref<Target = TyCtxt> from QueryCtxt#151626rust-bors[bot] merged 1 commit intorust-lang:mainfrom
Deref<Target = TyCtxt> from QueryCtxt#151626rust-bors[bot] merged 1 commit intorust-lang:mainfrom
Conversation
Explicitly writing `self.tcx` is easy enough, and lets us remove a bit of non-essential deref magic.
Collaborator
Member
|
r? tiif |
Member
|
This looks better than before, thanks! :) @bors r+ rollup |
Contributor
Zalathar
added a commit
to Zalathar/rust
that referenced
this pull request
Jan 26, 2026
Remove `Deref<Target = TyCtxt>` from `QueryCtxt` Explicitly writing `self.tcx` is easy enough, and lets us remove a bit of non-essential deref magic.
Member
Author
This comment has been minimized.
This comment has been minimized.
rust-bors bot
pushed a commit
that referenced
this pull request
Jan 26, 2026
Remove `Deref<Target = TyCtxt>` from `QueryCtxt` try-job: aarch64-apple
Zalathar
added a commit
to Zalathar/rust
that referenced
this pull request
Jan 26, 2026
Remove `Deref<Target = TyCtxt>` from `QueryCtxt` Explicitly writing `self.tcx` is easy enough, and lets us remove a bit of non-essential deref magic.
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Jan 26, 2026
Remove `Deref<Target = TyCtxt>` from `QueryCtxt` Explicitly writing `self.tcx` is easy enough, and lets us remove a bit of non-essential deref magic.
Contributor
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Jan 26, 2026
Remove `Deref<Target = TyCtxt>` from `QueryCtxt` Explicitly writing `self.tcx` is easy enough, and lets us remove a bit of non-essential deref magic.
rust-bors bot
pushed a commit
that referenced
this pull request
Jan 26, 2026
…uwer Rollup of 4 pull requests Successful merges: - #151137 (checksum-freshness: Fix invalid checksum calculation for binary files) - #148187 (Remove uses of `&mut CmResolver`) - #151626 (Remove `Deref<Target = TyCtxt>` from `QueryCtxt`) - #151661 (Suggest changing `iter`/`into_iter` when the other was meant)
rust-bors bot
pushed a commit
that referenced
this pull request
Jan 26, 2026
…uwer Rollup of 7 pull requests Successful merges: - #151290 (Recover from struct literals with placeholder or empty path) - #148187 (Remove uses of `&mut CmResolver`) - #151368 (Rustdoc performance improvements) - #151374 (some more rustc_borrowck cleanups) - #151536 (Fix sanitizer target builds on CI) - #151626 (Remove `Deref<Target = TyCtxt>` from `QueryCtxt`) - #151661 (Suggest changing `iter`/`into_iter` when the other was meant)
rust-bors bot
pushed a commit
that referenced
this pull request
Jan 26, 2026
…uwer Rollup of 7 pull requests Successful merges: - #151290 (Recover from struct literals with placeholder or empty path) - #148187 (Remove uses of `&mut CmResolver`) - #151368 (Rustdoc performance improvements) - #151374 (some more rustc_borrowck cleanups) - #151536 (Fix sanitizer target builds on CI) - #151626 (Remove `Deref<Target = TyCtxt>` from `QueryCtxt`) - #151661 (Suggest changing `iter`/`into_iter` when the other was meant)
rust-bors bot
pushed a commit
that referenced
this pull request
Jan 26, 2026
…uwer Rollup of 7 pull requests Successful merges: - #151290 (Recover from struct literals with placeholder or empty path) - #148187 (Remove uses of `&mut CmResolver`) - #151368 (Rustdoc performance improvements) - #151374 (some more rustc_borrowck cleanups) - #151536 (Fix sanitizer target builds on CI) - #151626 (Remove `Deref<Target = TyCtxt>` from `QueryCtxt`) - #151661 (Suggest changing `iter`/`into_iter` when the other was meant)
rust-bors bot
pushed a commit
that referenced
this pull request
Jan 26, 2026
…uwer Rollup of 7 pull requests Successful merges: - #151290 (Recover from struct literals with placeholder or empty path) - #148187 (Remove uses of `&mut CmResolver`) - #151368 (Rustdoc performance improvements) - #151374 (some more rustc_borrowck cleanups) - #151536 (Fix sanitizer target builds on CI) - #151626 (Remove `Deref<Target = TyCtxt>` from `QueryCtxt`) - #151661 (Suggest changing `iter`/`into_iter` when the other was meant)
rust-timer
added a commit
that referenced
this pull request
Jan 27, 2026
Rollup merge of #151626 - Zalathar:qcx-deref, r=tiif Remove `Deref<Target = TyCtxt>` from `QueryCtxt` Explicitly writing `self.tcx` is easy enough, and lets us remove a bit of non-essential deref magic.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explicitly writing
self.tcxis easy enough, and lets us remove a bit of non-essential deref magic.