From 6959b4f7b07e5d78e37092489868fb17c4d7c36e Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 15 May 2014 15:52:58 -0700 Subject: [PATCH] rustc: Stop calling error! in resolve These are taken care of with compiler errors later on, no need to spam with extra unformatted information unconditionally. Closes #14225 --- src/librustc/middle/resolve.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/librustc/middle/resolve.rs b/src/librustc/middle/resolve.rs index 471e290d914..e80694905d9 100644 --- a/src/librustc/middle/resolve.rs +++ b/src/librustc/middle/resolve.rs @@ -2993,7 +2993,7 @@ impl<'a> Resolver<'a> { Some(ref type_def) => { match type_def.module_def { None => { - error!("!!! (resolving module in lexical \ + debug!("!!! (resolving module in lexical \ scope) module wasn't actually a \ module!"); return Failed; @@ -3004,7 +3004,7 @@ impl<'a> Resolver<'a> { } } None => { - error!("!!! (resolving module in lexical scope) module + debug!("!!! (resolving module in lexical scope) module wasn't actually a module!"); return Failed; }