Rollup merge of #129590 - compiler-errors:ref-tykind, r=fmease
Avoid taking reference of &TyKind It's already a ref anyways. Just a tiny cleanup here.
This commit is contained in:
commit
d6a3aa4fc4
14 changed files with 18 additions and 18 deletions
|
@ -1104,7 +1104,7 @@ where
|
|||
}
|
||||
|
||||
fn is_never(this: TyAndLayout<'tcx>) -> bool {
|
||||
this.ty.kind() == &ty::Never
|
||||
matches!(this.ty.kind(), ty::Never)
|
||||
}
|
||||
|
||||
fn is_tuple(this: TyAndLayout<'tcx>) -> bool {
|
||||
|
|
|
@ -296,7 +296,7 @@ impl<'tcx> TyCtxt<'tcx> {
|
|||
) -> (Ty<'tcx>, Ty<'tcx>) {
|
||||
let (mut a, mut b) = (source, target);
|
||||
loop {
|
||||
match (&a.kind(), &b.kind()) {
|
||||
match (a.kind(), b.kind()) {
|
||||
(&ty::Adt(a_def, a_args), &ty::Adt(b_def, b_args))
|
||||
if a_def == b_def && a_def.is_struct() =>
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue