@@ -771,17 +771,14 @@ impl<'a> CrateLoader<'a> {
771
771
// also bail out as we don't need to implicitly inject one.
772
772
let mut needs_allocator = false ;
773
773
let mut found_required_allocator = false ;
774
- println ! ( "injecting allocator for {}" , self . local_crate_name) ;
775
774
self . cstore . iter_crate_data ( |cnum, data| {
776
775
needs_allocator = needs_allocator || data. needs_allocator ( ) ;
777
776
if data. is_allocator ( ) {
778
- println ! ( "{} required by rlib and is an allocator" , data. name( ) ) ;
777
+ info ! ( "{} required by rlib and is an allocator" , data. name( ) ) ;
779
778
self . inject_dependency_if ( cnum, "an allocator" ,
780
779
& |data| data. needs_allocator ( ) ) ;
781
- let explicit_dep = data. dep_kind . get ( ) == DepKind :: Explicit ;
782
- println ! ( "{} {} an explicit dependency" , data. name( ) ,
783
- if explicit_dep { "is" } else { "is not" } ) ;
784
- found_required_allocator = found_required_allocator || explicit_dep;
780
+ found_required_allocator = found_required_allocator ||
781
+ data. dep_kind . get ( ) == DepKind :: Explicit ;
785
782
}
786
783
} ) ;
787
784
if !needs_allocator || found_required_allocator { return }
@@ -824,14 +821,13 @@ impl<'a> CrateLoader<'a> {
824
821
// * Staticlibs and Rust dylibs use system malloc
825
822
// * Rust dylibs used as dependencies to rust use jemalloc
826
823
let name = if cfg ! ( feature = "rustc_alloc_frame" ) && cfg ! ( stage0) {
827
- // HACK to make stage1/2 with alloc_frame
824
+ // HACK to make stage1 with alloc_frame
828
825
Symbol :: intern ( & "alloc_frame" )
829
826
} else if need_lib_alloc && !self . sess . opts . cg . prefer_dynamic {
830
827
Symbol :: intern ( & self . sess . target . target . options . lib_allocation_crate )
831
828
} else {
832
829
Symbol :: intern ( & self . sess . target . target . options . exe_allocation_crate )
833
830
} ;
834
- println ! ( "Injecting {} for {}" , name, self . local_crate_name) ;
835
831
let dep_kind = DepKind :: Implicit ;
836
832
let ( cnum, data) =
837
833
self . resolve_crate ( & None , name, name, None , DUMMY_SP , PathKind :: Crate , dep_kind) ;
0 commit comments