Skip to content

Commit 6eec941

Browse files
committed
Remove debug print statemtnts
1 parent 5c4aadf commit 6eec941

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/librustc_metadata/creader.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -771,17 +771,14 @@ impl<'a> CrateLoader<'a> {
771771
// also bail out as we don't need to implicitly inject one.
772772
let mut needs_allocator = false;
773773
let mut found_required_allocator = false;
774-
println!("injecting allocator for {}", self.local_crate_name);
775774
self.cstore.iter_crate_data(|cnum, data| {
776775
needs_allocator = needs_allocator || data.needs_allocator();
777776
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());
779778
self.inject_dependency_if(cnum, "an allocator",
780779
&|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;
785782
}
786783
});
787784
if !needs_allocator || found_required_allocator { return }
@@ -824,14 +821,13 @@ impl<'a> CrateLoader<'a> {
824821
// * Staticlibs and Rust dylibs use system malloc
825822
// * Rust dylibs used as dependencies to rust use jemalloc
826823
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
828825
Symbol::intern(&"alloc_frame")
829826
} else if need_lib_alloc && !self.sess.opts.cg.prefer_dynamic {
830827
Symbol::intern(&self.sess.target.target.options.lib_allocation_crate)
831828
} else {
832829
Symbol::intern(&self.sess.target.target.options.exe_allocation_crate)
833830
};
834-
println!("Injecting {} for {}", name, self.local_crate_name);
835831
let dep_kind = DepKind::Implicit;
836832
let (cnum, data) =
837833
self.resolve_crate(&None, name, name, None, DUMMY_SP, PathKind::Crate, dep_kind);

0 commit comments

Comments
 (0)