diff options
| author | bors <bors@rust-lang.org> | 2019-09-28 09:51:08 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-09-28 09:51:08 +0000 |
| commit | 5f058d80fc3869a4e5afc50d1200ece293386527 (patch) | |
| tree | b14978d7fb239e9b8fe287c9586a815ac3ee7582 | |
| parent | edd90473ec5ba29b9ae1ee706c982e7046a6e63e (diff) | |
| parent | 5f6e3f35b5bb24fe99e441a3cdb7e0823280bbb7 (diff) | |
| download | rust-5f058d80fc3869a4e5afc50d1200ece293386527.tar.gz rust-5f058d80fc3869a4e5afc50d1200ece293386527.zip | |
Auto merge of #4594 - matthiaskrgr:rustup_18, r=phansch
rustup https://github.com/rust-lang/rust/pull/64781/ cc https://github.com/rust-lang/rust/issues/64867 changelog: none
| -rw-r--r-- | clippy_lints/src/enum_clike.rs | 2 | ||||
| -rw-r--r-- | clippy_lints/src/utils/mod.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/enum_clike.rs b/clippy_lints/src/enum_clike.rs index e1e20c90437..2a361856a12 100644 --- a/clippy_lints/src/enum_clike.rs +++ b/clippy_lints/src/enum_clike.rs @@ -48,7 +48,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnportableVariant { if let Some(anon_const) = &var.disr_expr { let param_env = ty::ParamEnv::empty(); let def_id = cx.tcx.hir().body_owner_def_id(anon_const.body); - let substs = InternalSubsts::identity_for_item(cx.tcx.global_tcx(), def_id); + let substs = InternalSubsts::identity_for_item(cx.tcx, def_id); let instance = ty::Instance::new(def_id, substs); let c_id = GlobalId { instance, diff --git a/clippy_lints/src/utils/mod.rs b/clippy_lints/src/utils/mod.rs index ffeb90e1cad..8fd84c07a7d 100644 --- a/clippy_lints/src/utils/mod.rs +++ b/clippy_lints/src/utils/mod.rs @@ -799,7 +799,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.global_tcx(), cx.param_env, DUMMY_SP) + ty.is_copy_modulo_regions(cx.tcx, cx.param_env, DUMMY_SP) } /// Checks if an expression is constructing a tuple-like enum variant or struct |
