File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1- use crate :: rustc_index:: Idx ;
21use gccjit:: { Location , RValue } ;
32use rustc_codegen_ssa:: mir:: debuginfo:: { DebugScope , FunctionDebugContext , VariableKind } ;
43use rustc_codegen_ssa:: traits:: { DebugInfoBuilderMethods , DebugInfoMethods } ;
54use rustc_data_structures:: sync:: Lrc ;
65use rustc_index:: bit_set:: BitSet ;
7- use rustc_index:: IndexVec ;
6+ use rustc_index:: { Idx , IndexVec } ;
87use rustc_middle:: mir:: { self , Body , SourceScope } ;
98use rustc_middle:: ty:: { Instance , PolyExistentialTraitRef , Ty } ;
109use rustc_session:: config:: DebugInfo ;
Original file line number Diff line number Diff line change 11use std:: fmt:: Write ;
22
3- use crate :: rustc_codegen_ssa:: traits:: { BaseTypeMethods , DerivedTypeMethods , LayoutTypeMethods } ;
43use gccjit:: { Struct , Type } ;
4+ use rustc_codegen_ssa:: traits:: { BaseTypeMethods , DerivedTypeMethods , LayoutTypeMethods } ;
55use rustc_middle:: bug;
66use rustc_middle:: ty:: layout:: { LayoutOf , TyAndLayout } ;
77use rustc_middle:: ty:: print:: with_no_trimmed_paths;
@@ -205,7 +205,7 @@ impl<'tcx> LayoutGccExt<'tcx> for TyAndLayout<'tcx> {
205205 /// of that field's type - this is useful for taking the address of
206206 /// that field and ensuring the struct has the right alignment.
207207 fn gcc_type < ' gcc > ( & self , cx : & CodegenCx < ' gcc , ' tcx > ) -> Type < ' gcc > {
208- use crate :: rustc_middle:: ty:: layout:: FnAbiOf ;
208+ use rustc_middle:: ty:: layout:: FnAbiOf ;
209209 // This must produce the same result for `repr(transparent)` wrappers as for the inner type!
210210 // In other words, this should generally not look at the type at all, but only at the
211211 // layout.
You can’t perform that action at this time.
0 commit comments