]> git.lizzy.rs Git - rust.git/commitdiff
use the logging framework instead of println!
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Wed, 15 Jun 2016 11:00:51 +0000 (13:00 +0200)
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Wed, 15 Jun 2016 11:00:51 +0000 (13:00 +0200)
src/bin/miri.rs

index 8cc52e39ca69e5b9bf45c198cead9cb87bb923bf..8ec691dbbbc2777d84e633e8def353702e8195a5 100644 (file)
@@ -38,7 +38,7 @@ fn build_controller(
             let mir_map = state.mir_map.unwrap();
 
             let (node_id, span) = state.session.entry_fn.borrow().expect("no main or start function found");
-            println!("found `main` function at: {:?}", span);
+            debug!("found `main` function at: {:?}", span);
 
             let mir = mir_map.map.get(&node_id).expect("no mir for main function");
             let def_id = tcx.map.local_def_id(node_id);