Skip to content

Commit 10f6712

Browse files
committed
Auto merge of #4594 - matthiaskrgr:rustup_18, r=phansch
rustup rust-lang/rust#64781 cc rust-lang/rust#64867 changelog: none
2 parents edd9047 + 5f6e3f3 commit 10f6712

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/enum_clike.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnportableVariant {
4848
if let Some(anon_const) = &var.disr_expr {
4949
let param_env = ty::ParamEnv::empty();
5050
let def_id = cx.tcx.hir().body_owner_def_id(anon_const.body);
51-
let substs = InternalSubsts::identity_for_item(cx.tcx.global_tcx(), def_id);
51+
let substs = InternalSubsts::identity_for_item(cx.tcx, def_id);
5252
let instance = ty::Instance::new(def_id, substs);
5353
let c_id = GlobalId {
5454
instance,

clippy_lints/src/utils/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ pub fn type_is_unsafe_function<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, ty: Ty<'tcx
799799
}
800800

801801
pub fn is_copy<'a, 'tcx>(cx: &LateContext<'a, 'tcx>, ty: Ty<'tcx>) -> bool {
802-
ty.is_copy_modulo_regions(cx.tcx.global_tcx(), cx.param_env, DUMMY_SP)
802+
ty.is_copy_modulo_regions(cx.tcx, cx.param_env, DUMMY_SP)
803803
}
804804

805805
/// Checks if an expression is constructing a tuple-like enum variant or struct

0 commit comments

Comments
 (0)