Make is_freeze and is_copy_modulo_regions take TyCtxtAt

This commit is contained in:
Ralf Jung
2020-06-21 11:20:48 +02:00
parent 922ff8e485
commit b92602ba69
6 changed files with 6 additions and 7 deletions

View File

@@ -891,7 +891,7 @@ pub fn type_is_unsafe_function<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, ty: Ty<'tcx
}
pub fn is_copy<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, ty: Ty<'tcx>) -> bool {
ty.is_copy_modulo_regions(cx.tcx, cx.param_env, DUMMY_SP)
ty.is_copy_modulo_regions(cx.tcx.at(DUMMY_SP), cx.param_env)
}
/// Checks if an expression is constructing a tuple-like enum variant or struct