From a8be000109d637864a108da81af27a0683ca99f0 Mon Sep 17 00:00:00 2001 From: lcnr Date: Tue, 8 Feb 2022 18:11:59 +0100 Subject: [PATCH] Update compiler/rustc_middle/src/ty/sty.rs --- compiler/rustc_middle/src/ty/sty.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/rustc_middle/src/ty/sty.rs b/compiler/rustc_middle/src/ty/sty.rs index 61216fc5de48..46c6b5eb796d 100644 --- a/compiler/rustc_middle/src/ty/sty.rs +++ b/compiler/rustc_middle/src/ty/sty.rs @@ -211,6 +211,8 @@ pub enum TyKind<'tcx> { /// /// For RPIT the substitutions are for the generics of the function, /// while for TAIT it is used for the generic parameters of the alias. + /// + /// During codegen, `tcx.type_of(def_id)` can be used to get the underlying type. Opaque(DefId, SubstsRef<'tcx>), /// A type parameter; for example, `T` in `fn f(x: T) {}`.