Skip to content

Commit

Permalink
Update TypeVariants to TyKind
Browse files Browse the repository at this point in the history
This has been renamed in rust-lang/rust#53581.
  • Loading branch information
nikic authored and mark-i-m committed Oct 26, 2018
1 parent 4196710 commit 34c9d3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ty.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ fn test_type<'tcx>(ty: Ty<'tcx>) {
```

The `sty` field (the origin of this name is unclear to me; perhaps
structural type?) is of type `TypeVariants<'tcx>`, which is an enum
structural type?) is of type `TyKind<'tcx>`, which is an enum
defining all of the different kinds of types in the compiler.

> N.B. inspecting the `sty` field on types during type inference can be
Expand Down

0 comments on commit 34c9d3f

Please sign in to comment.