From 5db385064e26202d71dc3801dee8a41a6ce28a9b Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Wed, 6 Feb 2019 12:27:01 -0700 Subject: [PATCH] Document the one TyKind that isn't documented This is especially confusing since the name `Foreign` and the name `extern type` are so different. I deduced that they're the same by consulting git-blame. --- src/librustc/ty/sty.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/librustc/ty/sty.rs b/src/librustc/ty/sty.rs index 671a0fc2d5d..6d49da5d002 100644 --- a/src/librustc/ty/sty.rs +++ b/src/librustc/ty/sty.rs @@ -107,6 +107,7 @@ pub enum TyKind<'tcx> { /// definition and not a concrete use of it. Adt(&'tcx AdtDef, &'tcx Substs<'tcx>), + /// An unsized FFI type that is opaque to Rust. Written as `extern type T`. Foreign(DefId), /// The pointee of a string slice. Written as `str`. -- GitLab