summaryrefslogtreecommitdiffstats
path: root/src/librustdoc/html/render/type_layout.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustdoc/html/render/type_layout.rs')
-rw-r--r--src/librustdoc/html/render/type_layout.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/type_layout.rs b/src/librustdoc/html/render/type_layout.rs
index 0bc32ea5a..377daaeb9 100644
--- a/src/librustdoc/html/render/type_layout.rs
+++ b/src/librustdoc/html/render/type_layout.rs
@@ -39,7 +39,7 @@ pub(crate) fn document_type_layout<'a, 'cx: 'a>(
let tcx = cx.tcx();
let param_env = tcx.param_env(ty_def_id);
- let ty = tcx.type_of(ty_def_id).subst_identity();
+ let ty = tcx.type_of(ty_def_id).instantiate_identity();
let type_layout = tcx.layout_of(param_env.and(ty));
let variants =