@@ -229,7 +229,7 @@ fn calculate_type(tcx: TyCtxt<'_>, ty: CrateType) -> DependencyList {
229
229
// static libraries.
230
230
//
231
231
// If the crate hasn't been included yet and it's not actually required
232
- // (e.g., it's an allocator ) then we skip it here as well.
232
+ // (e.g., it's a panic runtime ) then we skip it here as well.
233
233
for & cnum in tcx. crates ( ( ) ) . iter ( ) {
234
234
let src = tcx. used_crate_source ( cnum) ;
235
235
if src. dylib . is_none ( )
@@ -247,8 +247,7 @@ fn calculate_type(tcx: TyCtxt<'_>, ty: CrateType) -> DependencyList {
247
247
// artifact which means that we may need to inject dependencies of some
248
248
// form.
249
249
//
250
- // Things like allocators and panic runtimes may not have been activated
251
- // quite yet, so do so here.
250
+ // Things like panic runtimes may not have been activated quite yet, so do so here.
252
251
activate_injected_dep ( CStore :: from_tcx ( tcx) . injected_panic_runtime ( ) , & mut ret, & |cnum| {
253
252
tcx. is_panic_runtime ( cnum)
254
253
} ) ;
@@ -355,9 +354,9 @@ fn attempt_static(tcx: TyCtxt<'_>, unavailable: &mut Vec<CrateNum>) -> Option<De
355
354
) ;
356
355
}
357
356
358
- // Our allocator/ panic runtime may not have been linked above if it wasn't
359
- // explicitly linked, which is the case for any injected dependency. Handle
360
- // that here and activate them .
357
+ // Our panic runtime may not have been linked above if it wasn't explicitly
358
+ // linked, which is the case for any injected dependency. Handle that here
359
+ // and activate it .
361
360
activate_injected_dep ( CStore :: from_tcx ( tcx) . injected_panic_runtime ( ) , & mut ret, & |cnum| {
362
361
tcx. is_panic_runtime ( cnum)
363
362
} ) ;
@@ -393,8 +392,8 @@ fn activate_injected_dep(
393
392
}
394
393
}
395
394
396
- // After the linkage for a crate has been determined we need to verify that
397
- // there's only going to be one allocator in the output.
395
+ /// After the linkage for a crate has been determined we need to verify that
396
+ /// there's only going to be one panic runtime in the output.
398
397
fn verify_ok ( tcx : TyCtxt < ' _ > , list : & DependencyList ) {
399
398
let sess = & tcx. sess ;
400
399
if list. is_empty ( ) {
0 commit comments