core: Emit dead code warning via stderr

David Mak 2023-11-09 15:20:29 +08:00
parent 10538b5296
commit 1c15d7849c
1 changed files with 1 additions and 1 deletions

View File

@ -312,7 +312,7 @@ impl<'a> Inferencer<'a> {
let mut ret = false;
for stmt in block {
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)? {
ret = true;