diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-02-02 12:31:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-02 12:31:55 +0100 |
| commit | 56b5d112402036544650880b9584f72e03ee31f5 (patch) | |
| tree | 64f85477e83c9736c864543789a76ca9f574d879 /compiler/rustc_errors/src/snippet.rs | |
| parent | 984cc68c1c120811b8bc50e7b3c81d49f9e6ade8 (diff) | |
| parent | 64fcb003088a87b71da109a3556abe2105b7f318 (diff) | |
| download | rust-56b5d112402036544650880b9584f72e03ee31f5.tar.gz rust-56b5d112402036544650880b9584f72e03ee31f5.zip | |
Rollup merge of #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: - `tcx.ensure()` → `tcx.ensure_ok()` - `tcx.ensure_with_value()` → `tcx.ensure_done()` - Query modifier `ensure_forwards_result_if_red` → `return_result_from_ensure_ok` Hopefully these new names are a better fit for the *actual* function and purpose of these query call modes.
Diffstat (limited to 'compiler/rustc_errors/src/snippet.rs')
0 files changed, 0 insertions, 0 deletions
