core: Emit dead code warning via stderr
This commit is contained in:
parent
10538b5296
commit
1c15d7849c
|
@ -312,7 +312,7 @@ impl<'a> Inferencer<'a> {
|
||||||
let mut ret = false;
|
let mut ret = false;
|
||||||
for stmt in block {
|
for stmt in block {
|
||||||
if ret {
|
if ret {
|
||||||
println!("warning: dead code at {:?}\n", stmt.location)
|
eprintln!("warning: dead code at {:?}\n", stmt.location)
|
||||||
}
|
}
|
||||||
if self.check_stmt(stmt, defined_identifiers)? {
|
if self.check_stmt(stmt, defined_identifiers)? {
|
||||||
ret = true;
|
ret = true;
|
||||||
|
|
Loading…
Reference in New Issue