@@ -124,7 +124,7 @@ pub enum FunctionDebugContext {
124
124
}
125
125
126
126
impl FunctionDebugContext {
127
- fn get_ref < ' a > ( & ' a self , cx : & CrateContext , span : span ) -> & ' a FunctionDebugContextData {
127
+ fn get_ref < ' a > ( & ' a self , cx : & CrateContext , span : Span ) -> & ' a FunctionDebugContextData {
128
128
match * self {
129
129
FunctionDebugContext ( ~ref data) => data,
130
130
DebugInfoDisabled => {
@@ -140,7 +140,7 @@ impl FunctionDebugContext {
140
140
141
141
fn get_mut_ref < ' a > ( & ' a mut self ,
142
142
cx : & CrateContext ,
143
- span : span )
143
+ span : Span )
144
144
-> & ' a mut FunctionDebugContextData {
145
145
match * self {
146
146
FunctionDebugContext ( ~ref mut data) => data,
@@ -229,7 +229,7 @@ pub fn create_local_var_metadata(bcx: @mut Block,
229
229
pub fn create_captured_var_metadata ( bcx : @mut Block ,
230
230
node_id : ast:: NodeId ,
231
231
llptr : ValueRef ,
232
- span : span ) {
232
+ span : Span ) {
233
233
if fn_should_be_ignored ( bcx. fcx ) {
234
234
return ;
235
235
}
@@ -270,7 +270,7 @@ pub fn create_match_binding_metadata(bcx: @mut Block,
270
270
variable_ident : ast:: Ident ,
271
271
node_id : ast:: NodeId ,
272
272
variable_type : ty:: t ,
273
- span : span ) {
273
+ span : Span ) {
274
274
if fn_should_be_ignored ( bcx. fcx ) {
275
275
return ;
276
276
}
@@ -406,7 +406,7 @@ pub fn create_argument_metadata(bcx: @mut Block,
406
406
/// reliably find the correct visibility scope for the code position.
407
407
pub fn set_source_location ( fcx : & FunctionContext ,
408
408
node_id : ast:: NodeId ,
409
- span : span ) {
409
+ span : Span ) {
410
410
if fn_should_be_ignored ( fcx) {
411
411
return ;
412
412
}
@@ -784,12 +784,12 @@ fn compile_unit_metadata(cx: @mut CrateContext) {
784
784
785
785
fn declare_local ( bcx : @mut Block ,
786
786
llptr : ValueRef ,
787
- variable_ident : ast:: ident ,
787
+ variable_ident : ast:: Ident ,
788
788
variable_type : ty:: t ,
789
789
scope_metadata : DIScope ,
790
790
variable_access : VariableAccess ,
791
791
variable_kind : VariableKind ,
792
- span : span ) {
792
+ span : Span ) {
793
793
let cx: & mut CrateContext = bcx. ccx ( ) ;
794
794
795
795
let filename = span_start ( cx, span) . file . name ;
@@ -890,7 +890,7 @@ fn file_metadata(cx: &mut CrateContext, full_path: &str) -> DIFile {
890
890
/// Finds the scope metadata node for the given AST node.
891
891
fn scope_metadata ( fcx : & FunctionContext ,
892
892
node_id : ast:: NodeId ,
893
- span : span )
893
+ span : Span )
894
894
-> DIScope {
895
895
let scope_map = & fcx. debug_context . get_ref ( fcx. ccx , span) . scope_map ;
896
896
@@ -1428,7 +1428,7 @@ fn vec_slice_metadata(cx: &mut CrateContext,
1428
1428
1429
1429
fn subroutine_type_metadata ( cx : & mut CrateContext ,
1430
1430
signature : & ty:: FnSig ,
1431
- span : span )
1431
+ span : Span )
1432
1432
-> DICompositeType {
1433
1433
let loc = span_start ( cx, span) ;
1434
1434
let file_metadata = file_metadata ( cx, loc. file . name ) ;
0 commit comments