]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_ty_utils/src/instance.rs
Rollup merge of #85766 - workingjubilee:file-options, r=yaahc
[rust.git] / compiler / rustc_ty_utils / src / instance.rs
index 87b729faa54e0ad5f34796d330d236b9270612e7..13ffb2a5adc860b39d3173db80afaace4b76f713 100644 (file)
@@ -362,7 +362,7 @@ fn resolve_associated_item<'tcx>(
                     let is_copy = self_ty.is_copy_modulo_regions(tcx.at(DUMMY_SP), param_env);
                     match self_ty.kind() {
                         _ if is_copy => (),
-                        ty::Array(..) | ty::Closure(..) | ty::Tuple(..) => {}
+                        ty::Closure(..) | ty::Tuple(..) => {}
                         _ => return Ok(None),
                     };