impl Copy/Clone for arrays in std, not in compiler

This commit is contained in:
bstrie 2021-06-05 17:17:35 -04:00
parent 495322d776
commit ce1143e94d
9 changed files with 30 additions and 187 deletions

View 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),
};