diff options
| author | Michael Goulet <michael@errs.io> | 2023-01-25 17:02:16 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-01-30 19:19:07 +0000 |
| commit | f7fc0b712103d8832b305efa72e4c9851161bbdf (patch) | |
| tree | 97458ad4e7432eeb4695a907f677f76067521a5d /compiler/rustc_ty_utils/src | |
| parent | c24844048ff023aeaf47080634507677ffbe7001 (diff) | |
| download | rust-f7fc0b712103d8832b305efa72e4c9851161bbdf.tar.gz rust-f7fc0b712103d8832b305efa72e4c9851161bbdf.zip | |
nits
Diffstat (limited to 'compiler/rustc_ty_utils/src')
| -rw-r--r-- | compiler/rustc_ty_utils/src/ty.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_ty_utils/src/ty.rs b/compiler/rustc_ty_utils/src/ty.rs index b5005c1d8d8..41e837e8b75 100644 --- a/compiler/rustc_ty_utils/src/ty.rs +++ b/compiler/rustc_ty_utils/src/ty.rs @@ -426,10 +426,6 @@ fn unsizing_params_for_adt<'tcx>(tcx: TyCtxt<'tcx>, def_id: DefId) -> BitSet<u32 }, }; - // FIXME(eddyb) cache this (including computing `unsizing_params`) - // by putting it in a query; it would only need the `DefId` as it - // looks at declared field types, not anything substituted. - // The last field of the structure has to exist and contain type/const parameters. let Some((tail_field, prefix_fields)) = def.non_enum_variant().fields.split_last() else |
