From 0a9864f3ec36eb05a9e84be6379168c5ae4535d8 Mon Sep 17 00:00:00 2001 From: Anand Krishnamoorthi <35780660+anakrish@users.noreply.github.com> Date: Tue, 8 Jul 2025 12:23:54 -0500 Subject: [PATCH] fix: emit import warning to stderr (#430) fixes #429 Signed-off-by: Anand Krishnamoorthi --- src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.rs b/src/parser.rs index ce51a7b..4ae6312 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -117,7 +117,7 @@ impl<'source> Parser<'source> { "`{kw}` will be treated as identifier due to missing `import future.keywords.{kw}`" ); - std::println!( + std::eprintln!( "{}", self.source .message(self.tok.1.line, self.tok.1.col, "warning", &msg)