@@ -838,7 +838,7 @@ fn link_rlib(sess: Session,
838838 out_filename : & Path ) -> Archive {
839839 let mut a = Archive :: create ( sess, out_filename, obj_filename) ;
840840
841- for & ( ref l, kind) in cstore :: get_used_libraries ( sess. cstore ) . iter ( ) {
841+ for & ( ref l, kind) in sess. cstore . get_used_libraries ( ) . iter ( ) {
842842 match kind {
843843 cstore:: NativeStatic => {
844844 a. add_native_library ( l. as_slice ( ) ) ;
@@ -912,9 +912,9 @@ fn link_staticlib(sess: Session, obj_filename: &Path, out_filename: &Path) {
912912 let mut a = link_rlib ( sess, None , obj_filename, out_filename) ;
913913 a. add_native_library ( "morestack" ) ;
914914
915- let crates = cstore :: get_used_crates ( sess. cstore , cstore:: RequireStatic ) ;
915+ let crates = sess. cstore . get_used_crates ( cstore:: RequireStatic ) ;
916916 for & ( cnum, ref path) in crates. iter ( ) {
917- let name = cstore :: get_crate_data ( sess. cstore , cnum) . name ;
917+ let name = sess. cstore . get_crate_data ( cnum) . name ;
918918 let p = match * path {
919919 Some ( ref p) => p. clone ( ) , None => {
920920 sess. err ( format ! ( "could not find rlib for: `{}`" , name) ) ;
@@ -1072,7 +1072,7 @@ fn link_args(sess: Session,
10721072 // Finally add all the linker arguments provided on the command line along
10731073 // with any #[link_args] attributes found inside the crate
10741074 args. push_all ( sess. opts . linker_args ) ;
1075- for arg in cstore :: get_used_link_args ( sess. cstore ) . iter ( ) {
1075+ for arg in sess. cstore . get_used_link_args ( ) . iter ( ) {
10761076 args. push ( arg. clone ( ) ) ;
10771077 }
10781078 return args;
@@ -1101,7 +1101,7 @@ fn add_local_native_libraries(args: &mut ~[~str], sess: Session) {
11011101 args. push ( "-L" + path. as_str ( ) . unwrap ( ) . to_owned ( ) ) ;
11021102 }
11031103
1104- for & ( ref l, kind) in cstore :: get_used_libraries ( sess. cstore ) . iter ( ) {
1104+ for & ( ref l, kind) in sess. cstore . get_used_libraries ( ) . iter ( ) {
11051105 match kind {
11061106 cstore:: NativeUnknown | cstore:: NativeStatic => {
11071107 args. push ( "-l" + * l) ;
@@ -1143,7 +1143,7 @@ fn add_upstream_rust_crates(args: &mut ~[~str], sess: Session,
11431143 // all dynamic libaries require dynamic dependencies (see above), so
11441144 // it's satisfactory to include either all static libraries or all
11451145 // dynamic libraries.
1146- let crates = cstore:: get_used_crates ( cstore , cstore:: RequireStatic ) ;
1146+ let crates = cstore. get_used_crates ( cstore:: RequireStatic ) ;
11471147 if crates. iter ( ) . all ( |& ( _, ref p) | p. is_some ( ) ) {
11481148 for ( cnum, path) in crates. move_iter ( ) {
11491149 let cratepath = path. unwrap ( ) ;
@@ -1163,7 +1163,7 @@ fn add_upstream_rust_crates(args: &mut ~[~str], sess: Session,
11631163 // If we're not doing LTO, then our job is simply to just link
11641164 // against the archive.
11651165 if sess. lto ( ) {
1166- let name = cstore :: get_crate_data ( sess. cstore , cnum) . name ;
1166+ let name = sess. cstore . get_crate_data ( cnum) . name ;
11671167 time ( sess. time_passes ( ) , format ! ( "altering {}.rlib" , name) ,
11681168 ( ) , |( ) | {
11691169 let dst = tmpdir. join ( cratepath. filename ( ) . unwrap ( ) ) ;
@@ -1196,13 +1196,13 @@ fn add_upstream_rust_crates(args: &mut ~[~str], sess: Session,
11961196 // this case is the fallback
11971197 // * If an executable is being created, and one of the inputs is missing as
11981198 // a static library, then this is the fallback case.
1199- let crates = cstore:: get_used_crates ( cstore , cstore:: RequireDynamic ) ;
1199+ let crates = cstore. get_used_crates ( cstore:: RequireDynamic ) ;
12001200 for & ( cnum, ref path) in crates. iter ( ) {
12011201 let cratepath = match * path {
12021202 Some ( ref p) => p. clone ( ) ,
12031203 None => {
12041204 sess. err ( format ! ( "could not find dynamic library for: `{}`" ,
1205- cstore :: get_crate_data ( sess. cstore, cnum) . name) ) ;
1205+ sess. cstore. get_crate_data ( cnum) . name) ) ;
12061206 return
12071207 }
12081208 } ;
@@ -1235,7 +1235,7 @@ fn add_upstream_rust_crates(args: &mut ~[~str], sess: Session,
12351235// also be resolved in the target crate.
12361236fn add_upstream_native_libraries ( args : & mut ~[ ~str ] , sess : Session ) {
12371237 let cstore = sess. cstore ;
1238- cstore:: iter_crate_data ( cstore , |cnum, _| {
1238+ cstore. iter_crate_data ( |cnum, _| {
12391239 let libs = csearch:: get_native_libraries ( cstore, cnum) ;
12401240 for & ( kind, ref lib) in libs. iter ( ) {
12411241 match kind {
0 commit comments