Auto merge of #5739 - flip1995:rustup, r=flip1995

Rustup

changelog: none

r? @ghost
This commit is contained in:
bors 2020-06-23 12:04:08 +00:00
commit 4cc2fa933b
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