Skip to content

Commit

Permalink
Update compiler/rustc_middle/src/ty/sty.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnr committed Feb 8, 2022
1 parent af77bdf commit a8be000
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/rustc_middle/src/ty/sty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}`.
Expand Down

0 comments on commit a8be000

Please sign in to comment.