Rename tcx.ensure() to tcx.ensure_ok(), and improve the associated docs by Zalathar · Pull Request #136279 · rust-lang/rust (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation18 Commits5 Checks6 Files changed

Conversation

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

[ Show hidden characters]({{ revealButtonHref }})

Zalathar

@rustbot rustbot added A-query-system

Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html)

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

Jan 30, 2025

@rustbot

Some changes occurred to the CTFE / Miri interpreter

cc @rust-lang/miri, @rust-lang/wg-const-eval

Some changes occurred in compiler/rustc_codegen_cranelift

cc @bjorn3

Some changes occurred to MIR optimizations

cc @rust-lang/wg-mir-opt

@Zalathar

(All of the changes outside the query system are just applying the renames.)

@rust-log-analyzer

This comment has been minimized.

@Zalathar

Also adjust query calls in librustdoc (diff).

@rust-log-analyzer

This comment has been minimized.

@rustbot

Some changes occurred in src/tools/clippy

cc @rust-lang/clippy

@Zalathar

@rust-log-analyzer

This comment has been minimized.

oli-obk

@oli-obk

@bors

@oli-obk

@Zalathar

Rebased to resolve conflicts; I'll put this in the queue when PR CI is green.

@Zalathar

@bors r=oli-obk

This might be rotty, but I'll worry about that if it actually starts conflicting.

@bors

📌 Commit 3ae0239 has been approved by oli-obk

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

Feb 1, 2025

jhpratt added a commit to jhpratt/rust that referenced this pull request

Feb 1, 2025

@jhpratt

Rename tcx.ensure() to tcx.ensure_ok(), and improve the associated docs

This is all based on my archaeology for https://rust-lang.zulipchat.com/#narrow/channel/182449-t-compiler.2Fhelp/topic/.60TyCtxtEnsure.60.

The main renamings are:

Hopefully these new names are a better fit for the actual function and purpose of these query call modes.

bors added a commit to rust-lang-ci/rust that referenced this pull request

Feb 1, 2025

@bors

Rollup of 11 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

bors added a commit to rust-lang-ci/rust that referenced this pull request

Feb 1, 2025

@bors

Rollup of 11 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request

Feb 1, 2025

@matthiaskrgr

Rename tcx.ensure() to tcx.ensure_ok(), and improve the associated docs

This is all based on my archaeology for https://rust-lang.zulipchat.com/#narrow/channel/182449-t-compiler.2Fhelp/topic/.60TyCtxtEnsure.60.

The main renamings are:

Hopefully these new names are a better fit for the actual function and purpose of these query call modes.

bors added a commit to rust-lang-ci/rust that referenced this pull request

Feb 1, 2025

@bors

Rollup of 10 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

try-job: dist-powerpc64-linux

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request

Feb 1, 2025

@matthiaskrgr

Rename tcx.ensure() to tcx.ensure_ok(), and improve the associated docs

This is all based on my archaeology for https://rust-lang.zulipchat.com/#narrow/channel/182449-t-compiler.2Fhelp/topic/.60TyCtxtEnsure.60.

The main renamings are:

Hopefully these new names are a better fit for the actual function and purpose of these query call modes.

bors added a commit to rust-lang-ci/rust that referenced this pull request

Feb 1, 2025

@bors

Rollup of 5 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

try-job: dist-powerpc64-linux

bors added a commit to rust-lang-ci/rust that referenced this pull request

Feb 1, 2025

@bors

Rollup of 11 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

try-job: dist-powerpc64-linux

bors added a commit to rust-lang-ci/rust that referenced this pull request

Feb 1, 2025

@bors

Rollup of 11 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

try-job: dist-powerpc64-linux

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request

Feb 1, 2025

@matthiaskrgr

Rename tcx.ensure() to tcx.ensure_ok(), and improve the associated docs

This is all based on my archaeology for https://rust-lang.zulipchat.com/#narrow/channel/182449-t-compiler.2Fhelp/topic/.60TyCtxtEnsure.60.

The main renamings are:

Hopefully these new names are a better fit for the actual function and purpose of these query call modes.

bors added a commit to rust-lang-ci/rust that referenced this pull request

Feb 2, 2025

@bors

…iaskrgr

Rollup of 8 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

bors added a commit to rust-lang-ci/rust that referenced this pull request

Feb 2, 2025

@bors

…iaskrgr

Rollup of 8 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

bors added a commit to rust-lang-ci/rust that referenced this pull request

Feb 2, 2025

@bors

…iaskrgr

Rollup of 8 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

bors added a commit to rust-lang-ci/rust that referenced this pull request

Feb 2, 2025

@bors

…iaskrgr

Rollup of 7 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

rust-timer added a commit to rust-lang-ci/rust that referenced this pull request

Feb 2, 2025

@rust-timer

Rollup merge of rust-lang#136279 - Zalathar:ensure-ok, r=oli-obk

Rename tcx.ensure() to tcx.ensure_ok(), and improve the associated docs

This is all based on my archaeology for https://rust-lang.zulipchat.com/#narrow/channel/182449-t-compiler.2Fhelp/topic/.60TyCtxtEnsure.60.

The main renamings are:

Hopefully these new names are a better fit for the actual function and purpose of these query call modes.

flip1995 pushed a commit to flip1995/rust that referenced this pull request

Feb 6, 2025

@matthiaskrgr

Rename tcx.ensure() to tcx.ensure_ok(), and improve the associated docs

This is all based on my archaeology for https://rust-lang.zulipchat.com/#narrow/channel/182449-t-compiler.2Fhelp/topic/.60TyCtxtEnsure.60.

The main renamings are:

Hopefully these new names are a better fit for the actual function and purpose of these query call modes.

bjorn3 pushed a commit to bjorn3/rust that referenced this pull request

Feb 7, 2025

@matthiaskrgr

Rename tcx.ensure() to tcx.ensure_ok(), and improve the associated docs

This is all based on my archaeology for https://rust-lang.zulipchat.com/#narrow/channel/182449-t-compiler.2Fhelp/topic/.60TyCtxtEnsure.60.

The main renamings are:

Hopefully these new names are a better fit for the actual function and purpose of these query call modes.

Labels

A-query-system

Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html)

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.