Commit 6fc9761
committed
fix(compile): build.warnings=deny shouldn't block hard warnings
Motivation for this: rustc is trying to adopt this feature but hard
warnings are getting in the way, see rust-lang/rust#148332
Reasons to do this:
- Less flexibility in how hard warnings are resolved
- Matches Cargo not erroring for Cargo hard warnings
Reasons not do this:
- A user may see a hard warning from rustc and get confused
- Cargo's hard warnings are not blocking in part because we would need
to audit them to see if they should actually be hard warnings
We do have some flexibility on warnings evolving over time,
so this is likely a two-way door (on an unstable feature).
See also the discussion at #14802 (comment)1 parent dda6ea6 commit 6fc9761
File tree
6 files changed
+32
-13
lines changed- src/cargo
- core/compiler
- job_queue
- ops/cargo_compile
- tests/testsuite
6 files changed
+32
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
| 126 | + | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
97 | 103 | | |
98 | 104 | | |
99 | 105 | | |
100 | 106 | | |
101 | 107 | | |
| 108 | + | |
102 | 109 | | |
103 | 110 | | |
104 | 111 | | |
| |||
108 | 115 | | |
109 | 116 | | |
110 | 117 | | |
| 118 | + | |
111 | 119 | | |
112 | 120 | | |
113 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| 210 | + | |
| 211 | + | |
210 | 212 | | |
211 | 213 | | |
212 | 214 | | |
| |||
350 | 352 | | |
351 | 353 | | |
352 | 354 | | |
| 355 | + | |
353 | 356 | | |
354 | 357 | | |
355 | 358 | | |
356 | 359 | | |
357 | 360 | | |
358 | 361 | | |
| 362 | + | |
359 | 363 | | |
360 | 364 | | |
361 | 365 | | |
| |||
616 | 620 | | |
617 | 621 | | |
618 | 622 | | |
| 623 | + | |
619 | 624 | | |
620 | 625 | | |
621 | 626 | | |
622 | 627 | | |
623 | | - | |
| 628 | + | |
624 | 629 | | |
625 | 630 | | |
626 | 631 | | |
| |||
632 | 637 | | |
633 | 638 | | |
634 | 639 | | |
| 640 | + | |
635 | 641 | | |
636 | 642 | | |
637 | | - | |
| 643 | + | |
638 | 644 | | |
639 | 645 | | |
640 | 646 | | |
| 647 | + | |
641 | 648 | | |
642 | 649 | | |
643 | 650 | | |
644 | | - | |
| 651 | + | |
645 | 652 | | |
646 | 653 | | |
647 | 654 | | |
| |||
1004 | 1011 | | |
1005 | 1012 | | |
1006 | 1013 | | |
1007 | | - | |
| 1014 | + | |
1008 | 1015 | | |
1009 | 1016 | | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
1010 | 1020 | | |
1011 | 1021 | | |
1012 | 1022 | | |
| |||
1039 | 1049 | | |
1040 | 1050 | | |
1041 | 1051 | | |
1042 | | - | |
| 1052 | + | |
1043 | 1053 | | |
1044 | 1054 | | |
1045 | 1055 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2162 | 2162 | | |
2163 | 2163 | | |
2164 | 2164 | | |
| 2165 | + | |
2165 | 2166 | | |
2166 | 2167 | | |
2167 | 2168 | | |
2168 | 2169 | | |
2169 | 2170 | | |
2170 | | - | |
| 2171 | + | |
| 2172 | + | |
2171 | 2173 | | |
2172 | 2174 | | |
2173 | 2175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
257 | 256 | | |
258 | 257 | | |
259 | | - | |
260 | 258 | | |
261 | 259 | | |
262 | 260 | | |
| |||
0 commit comments