Skip to content

Commit 000daf9

Browse files
authored
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.
2 parents 5489d0d + 5db3850 commit 000daf9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc/ty/sty.rs

+1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ pub enum TyKind<'tcx> {
107107
/// definition and not a concrete use of it.
108108
Adt(&'tcx AdtDef, &'tcx Substs<'tcx>),
109109

110+
/// An unsized FFI type that is opaque to Rust. Written as `extern type T`.
110111
Foreign(DefId),
111112

112113
/// The pointee of a string slice. Written as `str`.

0 commit comments

Comments
 (0)