diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-11-21 10:04:31 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-11-21 10:04:31 +0000 |
| commit | d09f798235caa8aa563aea1436b2f770223d7e24 (patch) | |
| tree | 9782c6b16a8abd6c7ad1f34177cc7f3446eb97b2 /src/debuginfo/mod.rs | |
| parent | 0b8e94eb69e0901b42e91c3b713207b33f4e46b2 (diff) | |
| parent | 329cd79cb4849e00b6dd64a484fff070ec9e5a4a (diff) | |
Sync from rust 3fee0f12e4f595948f8f54f57c8b7a7a58127124
Diffstat (limited to 'src/debuginfo/mod.rs')
| -rw-r--r-- | src/debuginfo/mod.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/debuginfo/mod.rs b/src/debuginfo/mod.rs index 9025ea97b81..f3a8623e216 100644 --- a/src/debuginfo/mod.rs +++ b/src/debuginfo/mod.rs @@ -210,7 +210,7 @@ impl DebugContext { type_names::push_generic_params( tcx, - tcx.normalize_erasing_regions(ty::ParamEnv::reveal_all(), args), + tcx.normalize_erasing_regions(ty::TypingEnv::fully_monomorphized(), args), &mut name, ); @@ -275,8 +275,10 @@ impl DebugContext { let span = tcx.def_span(def_id); let (file_id, line, _column) = self.get_span_loc(tcx, span, span); - let static_type = Instance::mono(tcx, def_id).ty(tcx, ty::ParamEnv::reveal_all()); - let static_layout = tcx.layout_of(ty::ParamEnv::reveal_all().and(static_type)).unwrap(); + let static_type = Instance::mono(tcx, def_id).ty(tcx, ty::TypingEnv::fully_monomorphized()); + let static_layout = tcx + .layout_of(ty::TypingEnv::fully_monomorphized().as_query_input(static_type)) + .unwrap(); // FIXME use the actual type layout let type_id = self.debug_type(tcx, type_dbg, static_type); |
