@@ -247,7 +247,7 @@ impl Visitor<'tcx> for Validator<'_, 'mir, 'tcx> {
247247 if let box [ proj_base @ .., elem] = & place. projection {
248248 if * elem == ProjectionElem :: Deref {
249249 let base_ty = Place :: ty_from ( & place. base , proj_base, self . body , self . tcx ) . ty ;
250- if let ty:: Ref ( ..) = base_ty. sty {
250+ if let ty:: Ref ( ..) = base_ty. kind {
251251 reborrow_place = Some ( proj_base) ;
252252 }
253253 }
@@ -302,7 +302,7 @@ impl Visitor<'tcx> for Validator<'_, 'mir, 'tcx> {
302302 }
303303
304304 Rvalue :: BinaryOp ( op, ref lhs, _) => {
305- if let ty:: RawPtr ( _) | ty:: FnPtr ( ..) = lhs. ty ( self . body , self . tcx ) . sty {
305+ if let ty:: RawPtr ( _) | ty:: FnPtr ( ..) = lhs. ty ( self . body , self . tcx ) . kind {
306306 assert ! ( op == BinOp :: Eq || op == BinOp :: Ne ||
307307 op == BinOp :: Le || op == BinOp :: Lt ||
308308 op == BinOp :: Ge || op == BinOp :: Gt ||
@@ -431,7 +431,7 @@ impl Visitor<'tcx> for Validator<'_, 'mir, 'tcx> {
431431 }
432432
433433 let base_ty = Place :: ty_from ( place_base, proj_base, self . body , self . tcx ) . ty ;
434- if let ty:: RawPtr ( _) = base_ty. sty {
434+ if let ty:: RawPtr ( _) = base_ty. kind {
435435 self . check_op ( ops:: RawPtrDeref ) ;
436436 }
437437 }
@@ -508,7 +508,7 @@ impl Visitor<'tcx> for Validator<'_, 'mir, 'tcx> {
508508 TerminatorKind :: Call { func, .. } => {
509509 let fn_ty = func. ty ( self . body , self . tcx ) ;
510510
511- let def_id = match fn_ty. sty {
511+ let def_id = match fn_ty. kind {
512512 ty:: FnDef ( def_id, _) => def_id,
513513
514514 ty:: FnPtr ( _) => {
0 commit comments