Who cares? Meh, consistency.
This commit is contained in:
mcarton 2016-09-16 15:45:19 +02:00
parent 766217f9ac
commit 90c390ec2a
No known key found for this signature in database
GPG Key ID: 5E427C794CBA45E8

View File

@ -721,7 +721,7 @@ pub fn type_is_unsafe_function(ty: ty::Ty) -> bool {
}
}
pub fn is_copy<'a, 'ctx>(cx: &LateContext<'a, 'ctx>, ty: ty::Ty<'ctx>, env: NodeId) -> bool {
pub fn is_copy<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, ty: ty::Ty<'tcx>, env: NodeId) -> bool {
let env = ty::ParameterEnvironment::for_item(cx.tcx, env);
!ty.subst(cx.tcx, env.free_substs).moves_by_default(cx.tcx.global_tcx(), &env, DUMMY_SP)
}