@@ -129,7 +129,7 @@ fn calculate_type(tcx: TyCtxt<'_>, ty: CrateType) -> DependencyList {
129129 && sess. crt_static ( Some ( ty) )
130130 && !sess. target . crt_static_allows_dylibs )
131131 {
132- for & cnum in tcx. crates ( ) . iter ( ) {
132+ for & cnum in tcx. crates ( ( ) ) . iter ( ) {
133133 if tcx. dep_kind ( cnum) . macros_only ( ) {
134134 continue ;
135135 }
@@ -152,7 +152,7 @@ fn calculate_type(tcx: TyCtxt<'_>, ty: CrateType) -> DependencyList {
152152 // Sweep all crates for found dylibs. Add all dylibs, as well as their
153153 // dependencies, ensuring there are no conflicts. The only valid case for a
154154 // dependency to be relied upon twice is for both cases to rely on a dylib.
155- for & cnum in tcx. crates ( ) . iter ( ) {
155+ for & cnum in tcx. crates ( ( ) ) . iter ( ) {
156156 if tcx. dep_kind ( cnum) . macros_only ( ) {
157157 continue ;
158158 }
@@ -170,7 +170,7 @@ fn calculate_type(tcx: TyCtxt<'_>, ty: CrateType) -> DependencyList {
170170 }
171171
172172 // Collect what we've got so far in the return vector.
173- let last_crate = tcx. crates ( ) . len ( ) ;
173+ let last_crate = tcx. crates ( ( ) ) . len ( ) ;
174174 let mut ret = ( 1 ..last_crate + 1 )
175175 . map ( |cnum| match formats. get ( & CrateNum :: new ( cnum) ) {
176176 Some ( & RequireDynamic ) => Linkage :: Dynamic ,
@@ -184,7 +184,7 @@ fn calculate_type(tcx: TyCtxt<'_>, ty: CrateType) -> DependencyList {
184184 //
185185 // If the crate hasn't been included yet and it's not actually required
186186 // (e.g., it's an allocator) then we skip it here as well.
187- for & cnum in tcx. crates ( ) . iter ( ) {
187+ for & cnum in tcx. crates ( ( ) ) . iter ( ) {
188188 let src = tcx. used_crate_source ( cnum) ;
189189 if src. dylib . is_none ( )
190190 && !formats. contains_key ( & cnum)
@@ -281,7 +281,7 @@ fn attempt_static(tcx: TyCtxt<'_>) -> Option<DependencyList> {
281281
282282 // All crates are available in an rlib format, so we're just going to link
283283 // everything in explicitly so long as it's actually required.
284- let last_crate = tcx. crates ( ) . len ( ) ;
284+ let last_crate = tcx. crates ( ( ) ) . len ( ) ;
285285 let mut ret = ( 1 ..last_crate + 1 )
286286 . map ( |cnum| {
287287 if tcx. dep_kind ( CrateNum :: new ( cnum) ) == CrateDepKind :: Explicit {
0 commit comments