Skip to content

Remove TypeChecker::root_cx - #163082

Open
nnethercote wants to merge 1 commit into
rust-lang:mainfrom
nnethercote:rm-TypeChecker-root_cx
Open

nnethercote wants to merge 1 commit into
rust-lang:mainfrom
nnethercote:rm-TypeChecker-root_cx

Conversation

@nnethercote

Copy link
Copy Markdown
Contributor

It's only used for self.root_cx.root_def_id(), but self.infcx.root_def_id is also available.

r? @lqd

It's only used for `self.root_cx.root_def_id()`, but
`self.infcx.root_def_id` is also available.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 20, 2026
@rustbot rustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Sep 20, 2026
@chenyukang

Copy link
Copy Markdown
Member

@bors r+ rollup

@rust-bors

rust-bors Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 93c8966 has been approved by chenyukang

It is now in the queue for this repository.

@rust-bors rust-bors Bot 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 Sep 21, 2026
Zalathar added a commit to Zalathar/rust that referenced this pull request Sep 21, 2026
…, r=chenyukang

Remove `TypeChecker::root_cx`

It's only used for `self.root_cx.root_def_id()`, but `self.infcx.root_def_id` is also available.

r? @lqd
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.

4 participants