Update compiler/rustc_middle/src/ty/sty.rs

This commit is contained in:
lcnr 2022-02-08 18:11:59 +01:00 committed by GitHub
parent af77bdf439
commit a8be000109
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<T>(x: T) {}`.