diff options
| author | Michael Howell <michael@notriddle.com> | 2019-02-06 12:27:01 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-06 12:27:01 -0700 |
| commit | 5db385064e26202d71dc3801dee8a41a6ce28a9b (patch) | |
| tree | b30111ce1441c5c681cd7a976de727fe3f267ef1 /src/librustc/ty | |
| parent | b139669f374eb5024a50eb13f116ff763b1c5935 (diff) | |
| download | rust-5db385064e26202d71dc3801dee8a41a6ce28a9b.tar.gz rust-5db385064e26202d71dc3801dee8a41a6ce28a9b.zip | |
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.
Diffstat (limited to 'src/librustc/ty')
| -rw-r--r-- | src/librustc/ty/sty.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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`. |
