Skip to content

Commit 6959b4f

Browse files
committed
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
1 parent bbd034c commit 6959b4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/middle/resolve.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2993,7 +2993,7 @@ impl<'a> Resolver<'a> {
29932993
Some(ref type_def) => {
29942994
match type_def.module_def {
29952995
None => {
2996-
error!("!!! (resolving module in lexical \
2996+
debug!("!!! (resolving module in lexical \
29972997
scope) module wasn't actually a \
29982998
module!");
29992999
return Failed;
@@ -3004,7 +3004,7 @@ impl<'a> Resolver<'a> {
30043004
}
30053005
}
30063006
None => {
3007-
error!("!!! (resolving module in lexical scope) module
3007+
debug!("!!! (resolving module in lexical scope) module
30083008
wasn't actually a module!");
30093009
return Failed;
30103010
}

0 commit comments

Comments
 (0)