Skip to content

Commit

Permalink
Rollup merge of #58242 - notriddle:patch-3, r=zackmdavis
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kennytm authored Feb 7, 2019
2 parents 5489d0d + 5db3850 commit 000daf9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc/ty/sty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit 000daf9

Please sign in to comment.