9494
9595// Manuel, fixing rebase
9696use rustc_symbol_mangling:: symbol_name_for_instance_in_crate;
97- // use crate::ty::ParamEnv ;
98- use rustc_middle :: ty :: ParamEnv ;
97+ use rustc_middle :: middle :: typetree :: { Kind , Type , TypeTree } ;
98+ use rustc_target :: abi :: FieldsShape ;
9999
100100use std:: cmp;
101101use std:: collections:: hash_map:: Entry ;
@@ -117,7 +117,7 @@ use rustc_middle::mir::mono::{
117117} ;
118118use rustc_middle:: query:: Providers ;
119119use rustc_middle:: ty:: print:: { characteristic_def_id_of_type, with_no_trimmed_paths} ;
120- use rustc_middle:: ty:: { self , visit:: TypeVisitableExt , InstanceDef , TyCtxt } ;
120+ use rustc_middle:: ty:: { self , visit:: TypeVisitableExt , InstanceDef , TyCtxt , ParamEnv , ParamEnvAnd , Adt , Ty } ;
121121use rustc_session:: config:: { DumpMonoStatsFormat , SwitchWithOptPath } ;
122122use rustc_session:: CodegenUnits ;
123123use rustc_span:: symbol:: Symbol ;
@@ -1249,9 +1249,9 @@ fn collect_and_partition_mono_items(tcx: TyCtxt<'_>, (): ()) -> (&DefIdSet, &[Au
12491249
12501250 ( tcx. arena . alloc ( mono_items) , autodiff_items, codegen_units)
12511251}
1252- use rustc_middle:: ty:: { self , Adt , ParamEnvAnd , Ty } ;
1253- use rustc_target:: abi:: FieldsShape ;
1254- use std:: iter;
1252+ // use rustc_middle::ty::{self, Adt, ParamEnvAnd, Ty};
1253+ // use rustc_target::abi::FieldsShape;
1254+ // use std::iter;
12551255
12561256pub fn typetree_empty ( ) -> TypeTree {
12571257 TypeTree ( vec ! [ ] )
@@ -1369,7 +1369,7 @@ pub fn typetree_from_ty<'a>(ty: Ty<'a>, tcx: TyCtxt<'a>, depth: usize) -> TypeTr
13691369 let param_env_and = ParamEnvAnd { param_env : ParamEnv :: empty ( ) , value : sub_ty } ;
13701370 let size = tcx. layout_of ( param_env_and) . unwrap ( ) . size . bytes ( ) as usize ;
13711371 let tt = TypeTree (
1372- iter:: repeat ( subtt)
1372+ std :: iter:: repeat ( subtt)
13731373 . take ( * count as usize )
13741374 . enumerate ( )
13751375 . map ( |( idx, x) | x. 0 . into_iter ( ) . map ( move |x| x. add_offset ( ( idx * size) as isize ) ) )
0 commit comments