Skip to content

Commit 6a7f3db

Browse files
committed
no-stack-check
1 parent ff2ef04 commit 6a7f3db

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

compiler/rustc_driver_impl/src/lib.rs

-4
Original file line numberDiff line numberDiff line change
@@ -1124,10 +1124,6 @@ pub fn describe_flag_categories(early_dcx: &EarlyDiagCtxt, matches: &Matches) ->
11241124
return true;
11251125
}
11261126

1127-
if cg_flags.iter().any(|x| *x == "no-stack-check") {
1128-
early_dcx.early_warn("the `-Cno-stack-check` flag is deprecated and does nothing");
1129-
}
1130-
11311127
if cg_flags.iter().any(|x| *x == "passes=list") {
11321128
let backend_name = debug_flags.iter().find_map(|x| x.strip_prefix("codegen-backend="));
11331129

compiler/rustc_session/src/options.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1624,7 +1624,8 @@ options! {
16241624
"disable the use of the redzone"),
16251625
#[rustc_lint_opt_deny_field_access("documented to do nothing")]
16261626
no_stack_check: bool = (false, parse_no_value, [UNTRACKED],
1627-
"this option is deprecated and does nothing"),
1627+
"this option is deprecated and does nothing",
1628+
deprecated_do_nothing: true),
16281629
no_vectorize_loops: bool = (false, parse_no_value, [TRACKED],
16291630
"disable loop vectorization optimization passes"),
16301631
no_vectorize_slp: bool = (false, parse_no_value, [TRACKED],
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
//@ check-pass
2+
//@ compile-flags: -Cno-stack-check
3+
4+
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
warning: `-C no-stack-check`: this option is deprecated and does nothing
2+

0 commit comments

Comments
 (0)