diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-02-20 09:52:58 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-02-24 07:32:27 +1100 |
| commit | a980683d1fc1152fa795e197bd39b315b5745aab (patch) | |
| tree | 25628b6d277fce665d275f818e2332e19eedf2e6 | |
| parent | 2200911616c3054f0c090db54ea78bdfb666dade (diff) | |
| download | rust-a980683d1fc1152fa795e197bd39b315b5745aab.tar.gz rust-a980683d1fc1152fa795e197bd39b315b5745aab.zip | |
Replace a `mk_ty` call with `mk_bound`.
| -rw-r--r-- | compiler/rustc_hir_analysis/src/astconv/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/astconv/mod.rs b/compiler/rustc_hir_analysis/src/astconv/mod.rs index 49d4860314f..43dd5b3621a 100644 --- a/compiler/rustc_hir_analysis/src/astconv/mod.rs +++ b/compiler/rustc_hir_analysis/src/astconv/mod.rs @@ -2810,7 +2810,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o { var: ty::BoundVar::from_u32(index), kind: ty::BoundTyKind::Param(def_id, name), }; - tcx.mk_ty(ty::Bound(debruijn, br)) + tcx.mk_bound(debruijn, br) } Some(rbv::ResolvedArg::EarlyBound(_)) => { let def_id = def_id.expect_local(); |
