Skip to content

Commit

Permalink
Document the one TyKind that isn't documented
Browse files Browse the repository at this point in the history
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
notriddle authored Feb 6, 2019
1 parent b139669 commit 5db3850
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 5db3850

Please sign in to comment.