]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_codegen_ssa/src/meth.rs
Merge from rustc
[rust.git] / compiler / rustc_codegen_ssa / src / meth.rs
index d96ca921f1f4d90d931a01c5945e1c9dd584728b..2421acab4715d1078b73471abf79515d270f6448 100644 (file)
@@ -65,7 +65,7 @@ pub fn get_usize<Bx: BuilderMethods<'a, 'tcx>>(
 
 /// This takes a valid `self` receiver type and extracts the principal trait
 /// ref of the type.
-fn expect_dyn_trait_in_self<'tcx>(ty: Ty<'tcx>) -> ty::PolyExistentialTraitRef<'tcx> {
+fn expect_dyn_trait_in_self(ty: Ty<'_>) -> ty::PolyExistentialTraitRef<'_> {
     for arg in ty.peel_refs().walk() {
         if let GenericArgKind::Type(ty) = arg.unpack() {
             if let ty::Dynamic(data, _, _) = ty.kind() {