impl Copy/Clone for arrays in std, not in compiler
This commit is contained in:
parent
495322d776
commit
ce1143e94d
9 changed files with 30 additions and 187 deletions
|
@ -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),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue