Rollup merge of #58242 - notriddle:patch-3, r=zackmdavis

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.
This commit is contained in:
kennytm 2019-02-07 13:58:02 +08:00 committed by GitHub
commit 000daf948a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`.