File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
- use crate :: rustc_index:: Idx ;
2
1
use gccjit:: { Location , RValue } ;
3
2
use rustc_codegen_ssa:: mir:: debuginfo:: { DebugScope , FunctionDebugContext , VariableKind } ;
4
3
use rustc_codegen_ssa:: traits:: { DebugInfoBuilderMethods , DebugInfoMethods } ;
5
4
use rustc_data_structures:: sync:: Lrc ;
6
5
use rustc_index:: bit_set:: BitSet ;
7
- use rustc_index:: IndexVec ;
6
+ use rustc_index:: { Idx , IndexVec } ;
8
7
use rustc_middle:: mir:: { self , Body , SourceScope } ;
9
8
use rustc_middle:: ty:: { Instance , PolyExistentialTraitRef , Ty } ;
10
9
use rustc_session:: config:: DebugInfo ;
Original file line number Diff line number Diff line change 1
1
use std:: fmt:: Write ;
2
2
3
- use crate :: rustc_codegen_ssa:: traits:: { BaseTypeMethods , DerivedTypeMethods , LayoutTypeMethods } ;
4
3
use gccjit:: { Struct , Type } ;
4
+ use rustc_codegen_ssa:: traits:: { BaseTypeMethods , DerivedTypeMethods , LayoutTypeMethods } ;
5
5
use rustc_middle:: bug;
6
6
use rustc_middle:: ty:: layout:: { LayoutOf , TyAndLayout } ;
7
7
use rustc_middle:: ty:: print:: with_no_trimmed_paths;
@@ -205,7 +205,7 @@ impl<'tcx> LayoutGccExt<'tcx> for TyAndLayout<'tcx> {
205
205
/// of that field's type - this is useful for taking the address of
206
206
/// that field and ensuring the struct has the right alignment.
207
207
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 ;
209
209
// This must produce the same result for `repr(transparent)` wrappers as for the inner type!
210
210
// In other words, this should generally not look at the type at all, but only at the
211
211
// layout.
You can’t perform that action at this time.
0 commit comments