diff --git a/src/compiler/diagnostics.c b/src/compiler/diagnostics.c index aab554020..135951d95 100644 --- a/src/compiler/diagnostics.c +++ b/src/compiler/diagnostics.c @@ -317,7 +317,7 @@ void print_deprecation_at(SourceSpan loc, const char *message, ...) if (!compiler.build.lsp_output && !deprecation_hint) { deprecation_hint = true; - eprintf("HINT: You may use --silence-deprecation to silence deprecation warnings.\n\n"); + eprintf("HINT: You may use --warn-deprecation=no to silence deprecation warnings.\n\n"); } va_end(args); } diff --git a/test/src/test_suite_runner.c3 b/test/src/test_suite_runner.c3 index e2cc53e17..192b6fc4d 100644 --- a/test/src/test_suite_runner.c3 +++ b/test/src/test_suite_runner.c3 @@ -561,7 +561,7 @@ fn bool test_file(Path file_path, TestOutput* output, usz index) if (settings.no_deprecation) { - cmdline.push("--silence-deprecation"); + cmdline.push("--warn-deprecation=no"); } cmdline.push(settings.safe ? "--safe=yes" : "--safe=no");