Avoid taking reference of &TyKind It's already a ref anyways. Just a tiny cleanup here.
For more information about how rustc works, see the rustc dev guide.