diff options
| author | Michael Goulet <michael@errs.io> | 2023-08-01 00:52:16 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-08-01 23:10:38 +0000 |
| commit | 8696fa71b3ac0d8c468edc36502a304d38c7fd24 (patch) | |
| tree | 60381e996f69c31b63dc6bbea3f368597010b115 /compiler/rustc_middle/src/ty/adt.rs | |
| parent | abd3637e42bdccc4afd5d5ae9a96d9a0e7246e67 (diff) | |
| download | rust-8696fa71b3ac0d8c468edc36502a304d38c7fd24.tar.gz rust-8696fa71b3ac0d8c468edc36502a304d38c7fd24.zip | |
Convert adt_sized_constraint to early-binder, use list
Diffstat (limited to 'compiler/rustc_middle/src/ty/adt.rs')
| -rw-r--r-- | compiler/rustc_middle/src/ty/adt.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/ty/adt.rs b/compiler/rustc_middle/src/ty/adt.rs index e067d2a984f..1bbbc0b8f7b 100644 --- a/compiler/rustc_middle/src/ty/adt.rs +++ b/compiler/rustc_middle/src/ty/adt.rs @@ -572,8 +572,8 @@ impl<'tcx> AdtDef<'tcx> { /// /// Due to normalization being eager, this applies even if /// the associated type is behind a pointer (e.g., issue #31299). - pub fn sized_constraint(self, tcx: TyCtxt<'tcx>) -> ty::EarlyBinder<&'tcx [Ty<'tcx>]> { - ty::EarlyBinder::bind(tcx.adt_sized_constraint(self.did())) + pub fn sized_constraint(self, tcx: TyCtxt<'tcx>) -> ty::EarlyBinder<&'tcx ty::List<Ty<'tcx>>> { + tcx.adt_sized_constraint(self.did()) } } |
