Commit 3ef052f
authored
Rollup merge of rust-lang#140438 - ferrocene:pa-debug-assertions-tools, r=Kobzol
Add `rust.debug-assertions-tools` option
Before this PR, the two only options to configure the presence of debug assertions were the `rust.debug-assertions` and `rust.debug-assertions-std` options. The former applied to everything, and the latter allowed to override the setting just for the standard library. This combination of settings doesn't allow to enable debug assertions for the std and the compiler but not tools.
Some tools (like Cargo) are not really meant to be executed with debug assertions enabled, and in Ferrocene we hit some debug assertions in it that are exclusively meant for its test suite. We'd thus like to enable debug assertions everywhere but in tools.
This PR adds a `rust.debug-assertions-tools` setting that does exactly this.File tree
4 files changed
+28
-5
lines changed- src/bootstrap/src
- core
- builder
- config
- utils
4 files changed
+28
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
573 | 579 | | |
574 | 580 | | |
575 | 581 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
872 | 872 | | |
873 | 873 | | |
874 | 874 | | |
875 | | - | |
876 | | - | |
877 | | - | |
878 | | - | |
879 | | - | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
880 | 884 | | |
881 | 885 | | |
882 | 886 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
| 309 | + | |
309 | 310 | | |
310 | 311 | | |
311 | 312 | | |
| |||
1280 | 1281 | | |
1281 | 1282 | | |
1282 | 1283 | | |
| 1284 | + | |
1283 | 1285 | | |
1284 | 1286 | | |
1285 | 1287 | | |
| |||
1937 | 1939 | | |
1938 | 1940 | | |
1939 | 1941 | | |
| 1942 | + | |
1940 | 1943 | | |
1941 | 1944 | | |
1942 | 1945 | | |
| |||
2000 | 2003 | | |
2001 | 2004 | | |
2002 | 2005 | | |
| 2006 | + | |
2003 | 2007 | | |
2004 | 2008 | | |
2005 | 2009 | | |
| |||
2084 | 2088 | | |
2085 | 2089 | | |
2086 | 2090 | | |
| 2091 | + | |
2087 | 2092 | | |
2088 | 2093 | | |
2089 | 2094 | | |
| |||
2509 | 2514 | | |
2510 | 2515 | | |
2511 | 2516 | | |
| 2517 | + | |
| 2518 | + | |
2512 | 2519 | | |
2513 | 2520 | | |
2514 | 2521 | | |
| |||
3568 | 3575 | | |
3569 | 3576 | | |
3570 | 3577 | | |
| 3578 | + | |
3571 | 3579 | | |
3572 | 3580 | | |
3573 | 3581 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
404 | 409 | | |
0 commit comments