Skip to content

Commit 651ff64

Browse files
committedJun 14, 2024
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`?
1 parent 3af6242 commit 651ff64

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_driver_impl/src

1 file changed

+1
-1
lines changed
 

‎compiler/rustc_driver_impl/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ pub fn describe_flag_categories(early_dcx: &EarlyDiagCtxt, matches: &Matches) ->
11331133
}
11341134

11351135
if cg_flags.iter().any(|x| *x == "no-stack-check") {
1136-
early_dcx.early_warn("the --no-stack-check flag is deprecated and does nothing");
1136+
early_dcx.early_warn("the `-Cno-stack-check` flag is deprecated and does nothing");
11371137
}
11381138

11391139
if cg_flags.iter().any(|x| *x == "passes=list") {

0 commit comments

Comments
 (0)