diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2024-03-15 03:21:55 +0100 |
|---|---|---|
| committer | León Orell Valerian Liehr <me@fmease.dev> | 2024-03-22 06:31:40 +0100 |
| commit | 05d48b936f3733ff1d64de91a47465682603b133 (patch) | |
| tree | 3711627febd3ecf04737257c318d3f6643495f21 /compiler/rustc_hir_analysis/src/lib.rs | |
| parent | b57a10c39d2a2da7389d029595d7fff6ac9cbf5a (diff) | |
| download | rust-05d48b936f3733ff1d64de91a47465682603b133.tar.gz rust-05d48b936f3733ff1d64de91a47465682603b133.zip | |
Rename AstConv to HIR ty lowering
This includes updating astconv-related items and a few local variables.
Diffstat (limited to 'compiler/rustc_hir_analysis/src/lib.rs')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_hir_analysis/src/lib.rs b/compiler/rustc_hir_analysis/src/lib.rs index 5fe8d1fe586..e95ed554a78 100644 --- a/compiler/rustc_hir_analysis/src/lib.rs +++ b/compiler/rustc_hir_analysis/src/lib.rs @@ -213,10 +213,10 @@ pub fn check_crate(tcx: TyCtxt<'_>) -> Result<(), ErrorGuaranteed> { /// A quasi-deprecated helper used in rustdoc and clippy to get /// the type from a HIR node. -pub fn hir_ty_to_ty<'tcx>(tcx: TyCtxt<'tcx>, hir_ty: &hir::Ty<'tcx>) -> Ty<'tcx> { +pub fn lower_ty<'tcx>(tcx: TyCtxt<'tcx>, hir_ty: &hir::Ty<'tcx>) -> Ty<'tcx> { // In case there are any projections, etc., find the "environment" // def-ID that will be used to determine the traits/predicates in // scope. This is derived from the enclosing item-like thing. let env_def_id = tcx.hir().get_parent_item(hir_ty.hir_id); - collect::ItemCtxt::new(tcx, env_def_id.def_id).to_ty(hir_ty) + collect::ItemCtxt::new(tcx, env_def_id.def_id).lower_ty(hir_ty) } |
