Skip to content

Commit e46a8df

Browse files
committed
Auto merge of #3827 - phansch:rustup, r=Manishearth
Rustup rust-lang/rust#58321 Fixes the build after rust-lang/rust#58321
2 parents 6e8931c + 982a99d commit e46a8df

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clippy_lints/src/consts.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use if_chain::if_chain;
55
use rustc::hir::def::Def;
66
use rustc::hir::*;
77
use rustc::lint::LateContext;
8-
use rustc::ty::subst::{Subst, Substs};
8+
use rustc::ty::subst::{Subst, SubstsRef};
99
use rustc::ty::{self, Instance, Ty, TyCtxt};
1010
use rustc::{bug, span_bug};
1111
use rustc_data_structures::sync::Lrc;
@@ -209,7 +209,7 @@ pub struct ConstEvalLateContext<'a, 'tcx: 'a> {
209209
tables: &'a ty::TypeckTables<'tcx>,
210210
param_env: ty::ParamEnv<'tcx>,
211211
needed_resolution: bool,
212-
substs: &'tcx Substs<'tcx>,
212+
substs: SubstsRef<'tcx>,
213213
}
214214

215215
impl<'c, 'cc> ConstEvalLateContext<'c, 'cc> {

clippy_lints/src/enum_clike.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use rustc::hir::*;
77
use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
88
use rustc::mir::interpret::GlobalId;
99
use rustc::ty;
10-
use rustc::ty::subst::Substs;
10+
use rustc::ty::subst::InternalSubsts;
1111
use rustc::ty::util::IntTypeExt;
1212
use rustc::{declare_tool_lint, lint_array};
1313
use syntax::ast::{IntTy, UintTy};
@@ -58,7 +58,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for UnportableVariant {
5858
if let Some(ref anon_const) = variant.disr_expr {
5959
let param_env = ty::ParamEnv::empty();
6060
let def_id = cx.tcx.hir().body_owner_def_id(anon_const.body);
61-
let substs = Substs::identity_for_item(cx.tcx.global_tcx(), def_id);
61+
let substs = InternalSubsts::identity_for_item(cx.tcx.global_tcx(), def_id);
6262
let instance = ty::Instance::new(def_id, substs);
6363
let c_id = GlobalId {
6464
instance,

0 commit comments

Comments
 (0)