@@ -129,7 +129,7 @@ fn calculate_type(tcx: TyCtxt<'_>, ty: CrateType) -> DependencyList {
129
129
&& sess. crt_static ( Some ( ty) )
130
130
&& !sess. target . crt_static_allows_dylibs )
131
131
{
132
- for & cnum in tcx. crates ( ) . iter ( ) {
132
+ for & cnum in tcx. crates ( ( ) ) . iter ( ) {
133
133
if tcx. dep_kind ( cnum) . macros_only ( ) {
134
134
continue ;
135
135
}
@@ -152,7 +152,7 @@ fn calculate_type(tcx: TyCtxt<'_>, ty: CrateType) -> DependencyList {
152
152
// Sweep all crates for found dylibs. Add all dylibs, as well as their
153
153
// dependencies, ensuring there are no conflicts. The only valid case for a
154
154
// 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 ( ) {
156
156
if tcx. dep_kind ( cnum) . macros_only ( ) {
157
157
continue ;
158
158
}
@@ -170,7 +170,7 @@ fn calculate_type(tcx: TyCtxt<'_>, ty: CrateType) -> DependencyList {
170
170
}
171
171
172
172
// 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 ( ) ;
174
174
let mut ret = ( 1 ..last_crate + 1 )
175
175
. map ( |cnum| match formats. get ( & CrateNum :: new ( cnum) ) {
176
176
Some ( & RequireDynamic ) => Linkage :: Dynamic ,
@@ -184,7 +184,7 @@ fn calculate_type(tcx: TyCtxt<'_>, ty: CrateType) -> DependencyList {
184
184
//
185
185
// If the crate hasn't been included yet and it's not actually required
186
186
// (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 ( ) {
188
188
let src = tcx. used_crate_source ( cnum) ;
189
189
if src. dylib . is_none ( )
190
190
&& !formats. contains_key ( & cnum)
@@ -281,7 +281,7 @@ fn attempt_static(tcx: TyCtxt<'_>) -> Option<DependencyList> {
281
281
282
282
// All crates are available in an rlib format, so we're just going to link
283
283
// everything in explicitly so long as it's actually required.
284
- let last_crate = tcx. crates ( ) . len ( ) ;
284
+ let last_crate = tcx. crates ( ( ) ) . len ( ) ;
285
285
let mut ret = ( 1 ..last_crate + 1 )
286
286
. map ( |cnum| {
287
287
if tcx. dep_kind ( CrateNum :: new ( cnum) ) == CrateDepKind :: Explicit {
0 commit comments