about summary refs log tree commit diff
path: root/compiler/rustc_driver_impl/src
diff options
context:
space:
mode:
authorMartin Nordholts <martin.nordholts@codetale.se>2024-06-14 19:48:40 +0200
committerMartin Nordholts <martin.nordholts@codetale.se>2024-06-14 20:21:05 +0200
commit651ff643ae68438213bded335ef47cc9c50d3039 (patch)
tree8379e1ee5cc329f42c4c2c21f98d9815af97a0e1 /compiler/rustc_driver_impl/src
parent3af624272aeb25f0e7be4e1752631a86ce7c6358 (diff)
downloadrust-651ff643ae68438213bded335ef47cc9c50d3039.tar.gz
rust-651ff643ae68438213bded335ef47cc9c50d3039.zip
Fix typo in `-Cno-stack-check` deprecation warning
The flag `--no-stack-check` does not exist:

    $ rustc --no-stack-check
    error: Unrecognized option: 'no-stack-check'. Did you mean `-C no-stack-check`?
Diffstat (limited to 'compiler/rustc_driver_impl/src')
-rw-r--r--compiler/rustc_driver_impl/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_driver_impl/src/lib.rs b/compiler/rustc_driver_impl/src/lib.rs
index 9acff4a0a26..f7828b033bb 100644
--- a/compiler/rustc_driver_impl/src/lib.rs
+++ b/compiler/rustc_driver_impl/src/lib.rs
@@ -1133,7 +1133,7 @@ pub fn describe_flag_categories(early_dcx: &EarlyDiagCtxt, matches: &Matches) ->
     }
 
     if cg_flags.iter().any(|x| *x == "no-stack-check") {
-        early_dcx.early_warn("the --no-stack-check flag is deprecated and does nothing");
+        early_dcx.early_warn("the `-Cno-stack-check` flag is deprecated and does nothing");
     }
 
     if cg_flags.iter().any(|x| *x == "passes=list") {