X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_mir_transform%2Fsrc%2Fdeduce_param_attrs.rs;h=ddab7bbb2e3016a29fb23d9259c66a4064d9eac2;hb=f02439dea78e5c2df42198c7a03e2db6002ff263;hp=92f1fff6beb950f7d1b72bef8d8ce775bc4fcf55;hpb=069f219d4052bb8716aa3994f8c2a0f2c90c2c03;p=rust.git diff --git a/compiler/rustc_mir_transform/src/deduce_param_attrs.rs b/compiler/rustc_mir_transform/src/deduce_param_attrs.rs index 92f1fff6beb..ddab7bbb2e3 100644 --- a/compiler/rustc_mir_transform/src/deduce_param_attrs.rs +++ b/compiler/rustc_mir_transform/src/deduce_param_attrs.rs @@ -129,7 +129,7 @@ fn visit_terminator(&mut self, terminator: &Terminator<'tcx>, location: Location } /// Returns true if values of a given type will never be passed indirectly, regardless of ABI. -fn type_will_always_be_passed_directly<'tcx>(ty: Ty<'tcx>) -> bool { +fn type_will_always_be_passed_directly(ty: Ty<'_>) -> bool { matches!( ty.kind(), ty::Bool