@@ -24,7 +24,7 @@ use syntax::parse::token;
2424use syntax:: parse:: token:: { ident_interner, interner_get} ;
2525use syntax:: parse:: token:: special_idents;
2626use syntax:: print:: pprust:: path_to_str;
27- use syntax:: codemap:: { Span , dummy_sp , Pos } ;
27+ use syntax:: codemap:: { Span , DUMMY_SP , Pos } ;
2828use syntax:: opt_vec:: OptVec ;
2929use syntax:: visit;
3030use syntax:: visit:: Visitor ;
@@ -1643,7 +1643,7 @@ impl Resolver {
16431643 NormalModuleKind ,
16441644 true ,
16451645 is_public,
1646- dummy_sp ( ) ) ;
1646+ DUMMY_SP ) ;
16471647 }
16481648 }
16491649 }
@@ -1661,16 +1661,16 @@ impl Resolver {
16611661 // public.
16621662 let is_public = vis != ast:: private;
16631663 if is_struct {
1664- child_name_bindings. define_type ( def, dummy_sp ( ) , is_public) ;
1664+ child_name_bindings. define_type ( def, DUMMY_SP , is_public) ;
16651665 self . structs . insert ( variant_id) ;
16661666 } else {
1667- child_name_bindings. define_value ( def, dummy_sp ( ) , is_public) ;
1667+ child_name_bindings. define_value ( def, DUMMY_SP , is_public) ;
16681668 }
16691669 }
16701670 DefFn ( ..) | DefStaticMethod ( ..) | DefStatic ( ..) => {
16711671 debug ! ( "(building reduced graph for external \
16721672 crate) building value (fn/static) {}", final_ident) ;
1673- child_name_bindings. define_value ( def, dummy_sp ( ) , is_public) ;
1673+ child_name_bindings. define_value ( def, DUMMY_SP , is_public) ;
16741674 }
16751675 DefTrait ( def_id) => {
16761676 debug ! ( "(building reduced graph for external \
@@ -1711,7 +1711,7 @@ impl Resolver {
17111711 }
17121712 }
17131713
1714- child_name_bindings. define_type ( def, dummy_sp ( ) , is_public) ;
1714+ child_name_bindings. define_type ( def, DUMMY_SP , is_public) ;
17151715
17161716 // Define a module if necessary.
17171717 let parent_link = self . get_parent_link ( new_parent, ident) ;
@@ -1720,21 +1720,21 @@ impl Resolver {
17201720 TraitModuleKind ,
17211721 true ,
17221722 is_public,
1723- dummy_sp ( ) )
1723+ DUMMY_SP )
17241724 }
17251725 DefTy ( _) => {
17261726 debug ! ( "(building reduced graph for external \
17271727 crate) building type {}", final_ident) ;
17281728
1729- child_name_bindings. define_type ( def, dummy_sp ( ) , is_public) ;
1729+ child_name_bindings. define_type ( def, DUMMY_SP , is_public) ;
17301730 }
17311731 DefStruct ( def_id) => {
17321732 debug ! ( "(building reduced graph for external \
17331733 crate) building type and value for {}",
17341734 final_ident) ;
1735- child_name_bindings. define_type ( def, dummy_sp ( ) , is_public) ;
1735+ child_name_bindings. define_type ( def, DUMMY_SP , is_public) ;
17361736 if csearch:: get_struct_fields ( self . session . cstore , def_id) . len ( ) == 0 {
1737- child_name_bindings. define_value ( def, dummy_sp ( ) , is_public) ;
1737+ child_name_bindings. define_value ( def, DUMMY_SP , is_public) ;
17381738 }
17391739 self . structs . insert ( def_id) ;
17401740 }
@@ -1782,7 +1782,7 @@ impl Resolver {
17821782 self . add_child ( ident,
17831783 ModuleReducedGraphParent ( root) ,
17841784 OverwriteDuplicates ,
1785- dummy_sp ( ) ) ;
1785+ DUMMY_SP ) ;
17861786
17871787 self . handle_external_def ( def,
17881788 visibility,
@@ -1814,7 +1814,7 @@ impl Resolver {
18141814 final_ident,
18151815 ModuleReducedGraphParent ( root) ,
18161816 OverwriteDuplicates ,
1817- dummy_sp ( ) ) ;
1817+ DUMMY_SP ) ;
18181818
18191819 // Process the static methods. First,
18201820 // create the module.
@@ -1842,7 +1842,7 @@ impl Resolver {
18421842 ImplModuleKind ,
18431843 true ,
18441844 true ,
1845- dummy_sp ( ) ) ;
1845+ DUMMY_SP ) ;
18461846 type_module =
18471847 child_name_bindings.
18481848 get_module ( ) ;
@@ -1864,13 +1864,13 @@ impl Resolver {
18641864 self . add_child ( ident,
18651865 new_parent,
18661866 OverwriteDuplicates ,
1867- dummy_sp ( ) ) ;
1867+ DUMMY_SP ) ;
18681868 let def = DefFn (
18691869 static_method_info. def_id ,
18701870 static_method_info. purity ) ;
18711871
18721872 method_name_bindings. define_value (
1873- def, dummy_sp ( ) ,
1873+ def, DUMMY_SP ,
18741874 visibility == ast:: public) ;
18751875 }
18761876 }
@@ -5576,7 +5576,7 @@ impl Resolver {
55765576 // because this means that they were generated in some fashion by the
55775577 // compiler and we don't need to consider them.
55785578 if vi. vis == public { return }
5579- if vi. span == dummy_sp ( ) { return }
5579+ if vi. span == DUMMY_SP { return }
55805580
55815581 match vi. node {
55825582 view_item_extern_mod( ..) => { } // ignore
0 commit comments