@@ -4,7 +4,7 @@ use gccjit::{Location, RValue};
44use rustc_codegen_ssa:: mir:: debuginfo:: { DebugScope , FunctionDebugContext , VariableKind } ;
55use rustc_codegen_ssa:: traits:: { DebugInfoBuilderMethods , DebugInfoCodegenMethods } ;
66use rustc_data_structures:: sync:: Lrc ;
7- use rustc_index:: bit_set:: BitSet ;
7+ use rustc_index:: bit_set:: DenseBitSet ;
88use rustc_index:: { Idx , IndexVec } ;
99use rustc_middle:: mir:: { self , Body , SourceScope } ;
1010use rustc_middle:: ty:: { Instance , PolyExistentialTraitRef , Ty } ;
@@ -69,7 +69,7 @@ fn compute_mir_scopes<'gcc, 'tcx>(
6969) {
7070 // Find all scopes with variables defined in them.
7171 let variables = if cx. sess ( ) . opts . debuginfo == DebugInfo :: Full {
72- let mut vars = BitSet :: new_empty ( mir. source_scopes . len ( ) ) ;
72+ let mut vars = DenseBitSet :: new_empty ( mir. source_scopes . len ( ) ) ;
7373 // FIXME(eddyb) take into account that arguments always have debuginfo,
7474 // irrespective of their name (assuming full debuginfo is enabled).
7575 // NOTE(eddyb) actually, on second thought, those are always in the
@@ -82,7 +82,7 @@ fn compute_mir_scopes<'gcc, 'tcx>(
8282 // Nothing to emit, of course.
8383 None
8484 } ;
85- let mut instantiated = BitSet :: new_empty ( mir. source_scopes . len ( ) ) ;
85+ let mut instantiated = DenseBitSet :: new_empty ( mir. source_scopes . len ( ) ) ;
8686 // Instantiate all scopes.
8787 for idx in 0 ..mir. source_scopes . len ( ) {
8888 let scope = SourceScope :: new ( idx) ;
@@ -101,9 +101,9 @@ fn make_mir_scope<'gcc, 'tcx>(
101101 cx : & CodegenCx < ' gcc , ' tcx > ,
102102 _instance : Instance < ' tcx > ,
103103 mir : & Body < ' tcx > ,
104- variables : & Option < BitSet < SourceScope > > ,
104+ variables : & Option < DenseBitSet < SourceScope > > ,
105105 debug_context : & mut FunctionDebugContext < ' tcx , ( ) , Location < ' gcc > > ,
106- instantiated : & mut BitSet < SourceScope > ,
106+ instantiated : & mut DenseBitSet < SourceScope > ,
107107 scope : SourceScope ,
108108) {
109109 if instantiated. contains ( scope) {
0 commit comments