Commit 30b35c0
authored
Unrolled build for #154498
Rollup merge of #154498 - RalfJung:option-deprecations, r=fmease
turn some long-deprecated -C options into errors
- `-Car` has been documented to do nothing for more than 8 years (691ab6c) and causes a warning for more than a year (#135126).
- `-Cno-stack-check` has been made a NOP and deprecated with a warning more than 9 years ago (c670293)
- `-Cinline-threshold` has been made a NOP and deprecated with a warning almost 2 years ago (#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 the `rustc_lint_opt_deny_field_access` trick.
MCP: rust-lang/compiler-team#97815 files changed
Lines changed: 17 additions & 87 deletions
File tree
- compiler
- rustc_interface/src
- rustc_session/src
- src/doc/rustc/src/codegen-options
- tests/ui
- compile-flags
- deprecation
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
581 | | - | |
582 | 581 | | |
583 | 582 | | |
584 | 583 | | |
585 | 584 | | |
586 | 585 | | |
587 | | - | |
588 | 586 | | |
589 | 587 | | |
590 | 588 | | |
591 | 589 | | |
592 | 590 | | |
593 | | - | |
594 | 591 | | |
595 | 592 | | |
596 | 593 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
653 | 653 | | |
654 | 654 | | |
655 | 655 | | |
| 656 | + | |
656 | 657 | | |
657 | 658 | | |
658 | 659 | | |
| |||
2038 | 2039 | | |
2039 | 2040 | | |
2040 | 2041 | | |
2041 | | - | |
2042 | | - | |
2043 | | - | |
2044 | | - | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
2045 | 2045 | | |
2046 | 2046 | | |
2047 | 2047 | | |
| |||
2076 | 2076 | | |
2077 | 2077 | | |
2078 | 2078 | | |
2079 | | - | |
2080 | | - | |
2081 | | - | |
| 2079 | + | |
| 2080 | + | |
2082 | 2081 | | |
2083 | | - | |
| 2082 | + | |
2084 | 2083 | | |
2085 | 2084 | | |
2086 | 2085 | | |
| |||
2118 | 2117 | | |
2119 | 2118 | | |
2120 | 2119 | | |
2121 | | - | |
2122 | | - | |
2123 | | - | |
2124 | | - | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
2125 | 2123 | | |
2126 | 2124 | | |
2127 | 2125 | | |
| |||
2155 | 2153 | | |
2156 | 2154 | | |
2157 | 2155 | | |
2158 | | - | |
2159 | 2156 | | |
2160 | 2157 | | |
2161 | 2158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | 6 | | |
11 | 7 | | |
12 | 8 | | |
| |||
194 | 190 | | |
195 | 191 | | |
196 | 192 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | 193 | | |
204 | 194 | | |
205 | 195 | | |
| |||
443 | 433 | | |
444 | 434 | | |
445 | 435 | | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | 436 | | |
451 | 437 | | |
452 | 438 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
This file was deleted.
This file was deleted.
Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 0 additions & 4 deletions
This file was deleted.
0 commit comments