Skip to content

Commit 93df1bb

Browse files
committed
Fix rebase
1 parent bd5adc5 commit 93df1bb

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Diff for: src/librustc/infer/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1604,7 +1604,7 @@ impl<'a, 'tcx> ShallowResolver<'a, 'tcx> {
16041604
// are extremely hot.
16051605
#[inline(always)]
16061606
pub fn shallow_resolve_changed(&mut self, typ: Ty<'tcx>) -> bool {
1607-
match typ.sty {
1607+
match typ.kind {
16081608
ty::Infer(ty::TyVar(v)) => {
16091609
use self::type_variable::TypeVariableValue;
16101610

Diff for: src/librustc/traits/error_reporting.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
14631463
ty::Predicate::Trait(ref data) => {
14641464
let trait_ref = data.to_poly_trait_ref();
14651465
let self_ty = trait_ref.self_ty();
1466-
debug!("self_ty {:?} {:?} trait_ref {:?}", self_ty, self_ty.sty, trait_ref);
1466+
debug!("self_ty {:?} {:?} trait_ref {:?}", self_ty, self_ty.kind, trait_ref);
14671467

14681468
if predicate.references_error() {
14691469
return;

Diff for: src/librustc/ty/error.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -373,9 +373,9 @@ impl Trait for X {
373373
debug!(
374374
"note_and_explain_type_err expected={:?} ({:?}) found={:?} ({:?})",
375375
values.expected,
376-
values.expected.sty,
376+
values.expected.kind,
377377
values.found,
378-
values.found.sty,
378+
values.found.kind,
379379
);
380380
},
381381
CyclicTy(ty) => {

Diff for: src/librustc_mir/const_eval.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ pub fn const_eval_provider<'tcx>(
608608
// Catch such calls and evaluate them instead of trying to load a constant's MIR.
609609
if let ty::InstanceDef::Intrinsic(def_id) = key.value.instance.def {
610610
let ty = key.value.instance.ty(tcx);
611-
let substs = match ty.sty {
611+
let substs = match ty.kind {
612612
ty::FnDef(_, substs) => substs,
613613
_ => bug!("intrinsic with type {:?}", ty),
614614
};

Diff for: src/librustc_typeck/check/pat.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -718,10 +718,10 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
718718
// More generally, the expected type wants a tuple variant with one field of an
719719
// N-arity-tuple, e.g., `V_i((p_0, .., p_N))`. Meanwhile, the user supplied a pattern
720720
// with the subpatterns directly in the tuple variant pattern, e.g., `V_i(p_0, .., p_N)`.
721-
let missing_parenthesis = match expected.sty {
721+
let missing_parenthesis = match expected.kind {
722722
ty::Adt(_, substs) if fields.len() == 1 => {
723723
let field_ty = fields[0].ty(self.tcx, substs);
724-
match field_ty.sty {
724+
match field_ty.kind {
725725
ty::Tuple(_) => field_ty.tuple_fields().count() == subpats.len(),
726726
_ => false,
727727
}

0 commit comments

Comments
 (0)