Skip to content

Commit a8be000

Browse files
authored
Update compiler/rustc_middle/src/ty/sty.rs
1 parent af77bdf commit a8be000

File tree

1 file changed

+2
-0
lines changed
  • compiler/rustc_middle/src/ty

1 file changed

+2
-0
lines changed

compiler/rustc_middle/src/ty/sty.rs

+2
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ pub enum TyKind<'tcx> {
211211
///
212212
/// For RPIT the substitutions are for the generics of the function,
213213
/// while for TAIT it is used for the generic parameters of the alias.
214+
///
215+
/// During codegen, `tcx.type_of(def_id)` can be used to get the underlying type.
214216
Opaque(DefId, SubstsRef<'tcx>),
215217

216218
/// A type parameter; for example, `T` in `fn f<T>(x: T) {}`.

0 commit comments

Comments
 (0)