@@ -1060,7 +1060,7 @@ impl<'a> ModuleData<'a> {
10601060 fn for_each_child_stable < F : FnMut ( Ident , Namespace , & ' a NameBinding < ' a > ) > ( & self , mut f : F ) {
10611061 let resolutions = self . resolutions . borrow ( ) ;
10621062 let mut resolutions = resolutions. iter ( ) . collect :: < Vec < _ > > ( ) ;
1063- resolutions. sort_by_cached_key ( |& ( & ( ident, ns) , _) | ( ident. name . as_str ( ) , ns) ) ;
1063+ resolutions. sort_by_cached_key ( |& ( & ( ident, ns) , _) | ( ident. as_str ( ) , ns) ) ;
10641064 for & ( & ( ident, ns) , & resolution) in resolutions. iter ( ) {
10651065 resolution. borrow ( ) . binding . map ( |binding| f ( ident, ns, binding) ) ;
10661066 }
@@ -2608,7 +2608,7 @@ impl<'a> Resolver<'a> {
26082608 self ,
26092609 ident. span ,
26102610 ResolutionError :: IdentifierBoundMoreThanOnceInSamePattern (
2611- & ident. name . as_str ( ) )
2611+ & ident. as_str ( ) )
26122612 ) ;
26132613 }
26142614 Some ( ..) if pat_src == PatternSource :: FnParam => {
@@ -2617,7 +2617,7 @@ impl<'a> Resolver<'a> {
26172617 self ,
26182618 ident. span ,
26192619 ResolutionError :: IdentifierBoundMoreThanOnceInParameterList (
2620- & ident. name . as_str ( ) )
2620+ & ident. as_str ( ) )
26212621 ) ;
26222622 }
26232623 Some ( ..) if pat_src == PatternSource :: Match ||
@@ -3765,12 +3765,12 @@ impl<'a> Resolver<'a> {
37653765 // the closest match
37663766 let close_match = self . search_label ( label. ident , |rib, ident| {
37673767 let names = rib. bindings . iter ( ) . map ( |( id, _) | & id. name ) ;
3768- find_best_match_for_name ( names, & * ident. name . as_str ( ) , None )
3768+ find_best_match_for_name ( names, & * ident. as_str ( ) , None )
37693769 } ) ;
37703770 self . record_def ( expr. id , err_path_resolution ( ) ) ;
37713771 resolve_error ( self ,
37723772 label. ident . span ,
3773- ResolutionError :: UndeclaredLabel ( & label. ident . name . as_str ( ) ,
3773+ ResolutionError :: UndeclaredLabel ( & label. ident . as_str ( ) ,
37743774 close_match) ) ;
37753775 }
37763776 Some ( Def :: Label ( id) ) => {
@@ -4380,7 +4380,7 @@ fn names_to_string(idents: &[Ident]) -> String {
43804380 if i > 0 {
43814381 result. push_str ( "::" ) ;
43824382 }
4383- result. push_str ( & ident. name . as_str ( ) ) ;
4383+ result. push_str ( & ident. as_str ( ) ) ;
43844384 }
43854385 result
43864386}
0 commit comments