about summary refs log tree commit diff
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2022-02-08 18:11:59 +0100
committerGitHub <noreply@github.com>2022-02-08 18:11:59 +0100
commita8be000109d637864a108da81af27a0683ca99f0 (patch)
tree593a249a993f94688d1b88a5965aceaecaf9d470
parentaf77bdf4391572f63a86556cda8b116ab9baeacd (diff)
downloadrust-a8be000109d637864a108da81af27a0683ca99f0.tar.gz
rust-a8be000109d637864a108da81af27a0683ca99f0.zip
Update compiler/rustc_middle/src/ty/sty.rs
-rw-r--r--compiler/rustc_middle/src/ty/sty.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/ty/sty.rs b/compiler/rustc_middle/src/ty/sty.rs
index 61216fc5de4..46c6b5eb796 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<T>(x: T) {}`.