diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2023-10-13 20:20:57 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2025-07-23 23:54:37 +0000 |
| commit | 9ff071219bca913e45235568defadd5ab840c50a (patch) | |
| tree | b99f32ff1b7329862353a72f07e382f5fcfb1cac /compiler/rustc_monomorphize/src | |
| parent | ace633090349fc5075b5b0d56294de985e7d1191 (diff) | |
Give an AllocId to ConstValue::Slice.
Diffstat (limited to 'compiler/rustc_monomorphize/src')
| -rw-r--r-- | compiler/rustc_monomorphize/src/collector.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/rustc_monomorphize/src/collector.rs b/compiler/rustc_monomorphize/src/collector.rs index 91c8e64ce9a..41457f417f2 100644 --- a/compiler/rustc_monomorphize/src/collector.rs +++ b/compiler/rustc_monomorphize/src/collector.rs @@ -1363,10 +1363,8 @@ fn collect_const_value<'tcx>( collect_alloc(tcx, ptr.provenance.alloc_id(), output) } mir::ConstValue::Indirect { alloc_id, .. } => collect_alloc(tcx, alloc_id, output), - mir::ConstValue::Slice { data, meta: _ } => { - for &prov in data.inner().provenance().ptrs().values() { - collect_alloc(tcx, prov.alloc_id(), output); - } + mir::ConstValue::Slice { alloc_id, meta: _, phantom: _ } => { + collect_alloc(tcx, alloc_id, output); } _ => {} } |
