turn some long-deprecated -C options into errors#154498
turn some long-deprecated -C options into errors#154498RalfJung wants to merge 3 commits intorust-lang:mainfrom
Conversation
|
r? @fmease rustbot has assigned @fmease. Use Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
8826f95 to
e754f88
Compare
This comment has been minimized.
This comment has been minimized.
e754f88 to
8813c8c
Compare
This comment has been minimized.
This comment has been minimized.
8813c8c to
957ca22
Compare
|
Can you please also update https://github.com/rust-lang/rust/blob/main/src/doc/rustc/src/codegen-options/index.md? |
|
A GitHub search finds a bunch of cases of inline-threshold, from a quick skim it looks like it's set in two relatively popular fuzzing/coverage related libraries:
-Cno-stack-check appears in: -Car is much harder to search for, I didn't find any cases, but I think we should cut PRs and get them merged at least against the above cases. Doing a |
|
Thanks for the search!
|
fd0b941 to
d78c023
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
d78c023 to
e49e85b
Compare
-Carhas been documented to do nothing for 8 years (691ab6c) and causes a warning for more than a year (mark deprecated option as deprecated in rustc_session to remove copypasta and small refactor #135126).-Cno-stack-checkhas been made a NOP and deprecated with a warning 10 years ago (c670293)-Cinline-thresholdhas been made a NOP and deprecated with a warning almost 2 years ago (Deprecate no-op codegen option-Cinline-threshold=...#124712).With them being ignored there's always a risk someone thinks they'll do something and they don't notice the warning. I think these have been deprecated for long enough that we can turn them into hard errors.
Also change the type of these fields to
()so there's no information here that the rest of the compiler could use. This supersedes therustc_lint_opt_deny_field_accesstrick.MCP: rust-lang/compiler-team#978