From 5a86f5d084b7580ec6c94c2be213d660d0ce0f67 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 22 Oct 2012 13:33:12 -0700 Subject: [PATCH] rustc: Convert two printlns in trans into debug! --- src/rustc/middle/trans/meth.rs | 2 +- src/rustc/middle/trans/monomorphize.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rustc/middle/trans/meth.rs b/src/rustc/middle/trans/meth.rs index fadde08b9f8..20dba35b231 100644 --- a/src/rustc/middle/trans/meth.rs +++ b/src/rustc/middle/trans/meth.rs @@ -155,7 +155,7 @@ fn trans_method_callee(bcx: block, callee_id: ast::node_id, // Get the ID of the impl we're inside. let impl_def_id = bcx.fcx.impl_id.get(); - io::println(fmt!("impl_def_id is %?", impl_def_id)); + debug!("impl_def_id is %?", impl_def_id); // Get the ID of the method we're calling. let method_name = diff --git a/src/rustc/middle/trans/monomorphize.rs b/src/rustc/middle/trans/monomorphize.rs index aadd6fc7957..c2f106f631b 100644 --- a/src/rustc/middle/trans/monomorphize.rs +++ b/src/rustc/middle/trans/monomorphize.rs @@ -203,7 +203,7 @@ fn monomorphic_fn(ccx: @crate_ctxt, ast_map::node_trait_method(@ast::provided(mth), _, pt) => { let d = mk_lldecl(); set_inline_hint_if_appr(mth.attrs, d); - io::println(fmt!("monomorphic_fn impl_did_opt is %?", impl_did_opt)); + debug!("monomorphic_fn impl_did_opt is %?", impl_did_opt); meth::trans_method(ccx, *pt, mth, psubsts, None, d, impl_did_opt.get()); d