@@ -11,6 +11,7 @@ use std::rc::Rc;
1111use log_derive:: * ;
1212
1313use mirai_annotations:: * ;
14+ use rustc_abi:: { FieldIdx , Primitive , TagEncoding , VariantIdx , Variants } ;
1415use rustc_hir:: def_id:: DefId ;
1516use rustc_index:: { Idx , IndexVec } ;
1617use rustc_middle:: mir;
@@ -24,7 +25,6 @@ use rustc_middle::ty::{
2425} ;
2526use rustc_middle:: ty:: { GenericArg , GenericArgsRef } ;
2627use rustc_span:: source_map:: Spanned ;
27- use rustc_target:: abi:: { FieldIdx , Primitive , TagEncoding , VariantIdx , Variants } ;
2828use rustc_trait_selection:: infer:: TyCtxtInferExt ;
2929
3030use crate :: abstract_value:: { self , AbstractValue , AbstractValueTrait , BOTTOM } ;
@@ -208,7 +208,7 @@ impl<'block, 'analysis, 'compilation, 'tcx> BlockVisitor<'block, 'analysis, 'com
208208 fn visit_set_discriminant (
209209 & mut self ,
210210 place : & mir:: Place < ' tcx > ,
211- variant_index : rustc_target :: abi :: VariantIdx ,
211+ variant_index : rustc_abi :: VariantIdx ,
212212 ) {
213213 let target_path = Path :: new_discriminant ( self . visit_rh_place ( place) ) ;
214214 let ty = self
@@ -3028,10 +3028,8 @@ impl<'block, 'analysis, 'compilation, 'tcx> BlockVisitor<'block, 'analysis, 'com
30283028 // The Rust compiler should ensure this.
30293029 assume ! ( alloc_len > offset_bytes) ;
30303030 let size = alloc_len - offset_bytes;
3031- let range = alloc_range (
3032- ptr. into_parts ( ) . 1 ,
3033- rustc_target:: abi:: Size :: from_bytes ( size) ,
3034- ) ;
3031+ let range =
3032+ alloc_range ( ptr. into_parts ( ) . 1 , rustc_abi:: Size :: from_bytes ( size) ) ;
30353033 let bytes = if size > 0
30363034 && alloc. inner ( ) . provenance ( ) . range_empty ( range, & self . bv . tcx )
30373035 {
@@ -3046,8 +3044,8 @@ impl<'block, 'analysis, 'compilation, 'tcx> BlockVisitor<'block, 'analysis, 'com
30463044 Some ( GlobalAlloc :: Memory ( alloc) ) => {
30473045 let size = alloc. inner ( ) . len ( ) as u64 ;
30483046 let range = alloc_range (
3049- rustc_target :: abi :: Size :: from_bytes ( 0 ) ,
3050- rustc_target :: abi :: Size :: from_bytes ( size) ,
3047+ rustc_abi :: Size :: from_bytes ( 0 ) ,
3048+ rustc_abi :: Size :: from_bytes ( size) ,
30513049 ) ;
30523050 bytes = alloc
30533051 . inner ( )
@@ -3193,12 +3191,12 @@ impl<'block, 'analysis, 'compilation, 'tcx> BlockVisitor<'block, 'analysis, 'com
31933191
31943192 // Used only for `&[u8]` and `&str`
31953193 ConstValue :: Slice { data, meta } => {
3196- let size = rustc_target :: abi :: Size :: from_bytes ( meta) ;
3194+ let size = rustc_abi :: Size :: from_bytes ( meta) ;
31973195 let bytes = data
31983196 . inner ( )
31993197 . get_bytes_strip_provenance (
32003198 & self . bv . tcx ,
3201- alloc_range ( rustc_target :: abi :: Size :: ZERO , size) ,
3199+ alloc_range ( rustc_abi :: Size :: ZERO , size) ,
32023200 )
32033201 . unwrap ( ) ;
32043202 let slice = & bytes[ 0 ..] ;
0 commit comments