We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af77bdf commit a8be000Copy full SHA for a8be000
compiler/rustc_middle/src/ty/sty.rs
@@ -211,6 +211,8 @@ pub enum TyKind<'tcx> {
211
///
212
/// For RPIT the substitutions are for the generics of the function,
213
/// 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.
216
Opaque(DefId, SubstsRef<'tcx>),
217
218
/// A type parameter; for example, `T` in `fn f<T>(x: T) {}`.
0 commit comments