]> git.lizzy.rs Git - rust.git/commitdiff
Don't use `println` in the compiler
authorOliver Schneider <github35764891676564198441@oli-obk.de>
Tue, 26 Jun 2018 12:39:37 +0000 (14:39 +0200)
committerOliver Schneider <github35764891676564198441@oli-obk.de>
Wed, 27 Jun 2018 09:17:55 +0000 (11:17 +0200)
src/librustc/hir/map/collector.rs

index f16bf1d774455f7e9c0ce697e2648e9e3dfd8d85..5c09a263ad128eda7d8f5ced1e3e7a1b6cf14599 100644 (file)
@@ -232,7 +232,7 @@ fn insert(&mut self, id: NodeId, node: Node<'hir>) {
                 };
 
                 if hir_id == ::hir::DUMMY_HIR_ID {
-                    println!("Maybe you forgot to lower the node id {:?}?", id);
+                    debug!("Maybe you forgot to lower the node id {:?}?", id);
                 }
 
                 bug!("inconsistent DepNode for `{}`: \