From 803499886b90536cdbb9d40eaa9085157772d771 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Tue, 19 Apr 2022 17:08:23 +0200 Subject: Remove the DENO_FUTURE_CHECK warning (#14320) It has good intentions, but it is a really terrible user experience. As such we shouldn't print this warning. --- cli/main.rs | 5 ----- cli/tests/testdata/future_check1.out | 2 -- 2 files changed, 7 deletions(-) diff --git a/cli/main.rs b/cli/main.rs index 320e4e8c3..e8a949e3d 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -1150,11 +1150,6 @@ async fn run_command( flags: Flags, run_flags: RunFlags, ) -> Result { - if !flags.has_check_flag && flags.type_check_mode == TypeCheckMode::All { - info!("{} In future releases `deno run` will not automatically type check without the --check flag. -To opt into this new behavior now, specify DENO_FUTURE_CHECK=1.", colors::yellow("Warning")); - } - // Read script content from stdin if run_flags.script == "-" { return run_from_stdin(flags).await; diff --git a/cli/tests/testdata/future_check1.out b/cli/tests/testdata/future_check1.out index 7505efcd4..c626a5485 100644 --- a/cli/tests/testdata/future_check1.out +++ b/cli/tests/testdata/future_check1.out @@ -1,3 +1 @@ -Warning In future releases `deno run` will not automatically type check without the --check flag. -To opt into this new behavior now, specify DENO_FUTURE_CHECK=1. Check [WILDCARD]/future_check.ts -- cgit v1.2.3