fix: emit import warning to stderr (#430)

fixes #429

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
Anand Krishnamoorthi
2025-07-08 12:23:54 -05:00
committed by GitHub
parent 9cba07b778
commit 0a9864f3ec

View File

@@ -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)