rust/compiler/rustc_ty_utils/src
Matthias Krüger 58a5f891f9
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.
2025-02-02 12:31:55 +01:00
..
layout make no-variant types a dedicated Variants variant 2024-12-18 11:01:54 +01:00
abi.rs Add gpu-kernel calling convention 2025-01-16 00:26:55 +01:00
assoc.rs Split hir TyKind and ConstArgKind in two and update hir::Visitor 2025-01-23 06:01:36 +00:00
common_traits.rs move fn is_item_raw to TypingEnv 2024-11-19 18:06:20 +01:00
consts.rs Implement MIR, CTFE, and codegen for unsafe binders 2025-01-31 17:19:53 +00:00
errors.rs Add warn(unreachable_pub) to rustc_ty_utils. 2024-09-03 08:50:33 +10:00
implied_bounds.rs uplift fold_regions to rustc_type_ir 2024-11-28 10:40:58 +01:00
instance.rs Rename tcx.ensure() to tcx.ensure_ok() 2025-02-01 12:38:54 +11:00
layout.rs introduce ty::Value 2025-01-30 17:47:44 +01:00
lib.rs compiler: pre-move code for fixing enum layout ICEs 2024-10-20 02:09:22 -07:00
needs_drop.rs Begin to implement type system layer of unsafe binders 2024-12-22 21:57:57 +00:00
opaque_types.rs Encode cross-crate opaque type origin 2024-10-31 01:35:13 +00:00
representability.rs rename BitSet to DenseBitSet 2025-01-11 11:34:01 +00:00
sig_types.rs nit: Make get_infer_ret_ty name more consistent with is_suggestable_infer_ty 2025-01-02 23:39:16 +00:00
structural_match.rs TypingMode 🤔 2024-10-29 17:01:24 +01:00
ty.rs rename BitSet to DenseBitSet 2025-01-11 11:34:01 +00:00