Commit 3ddb048
authored
Rollup merge of rust-lang#101595 - ehuss:fix-ice-flag-report, r=tmiasko
Fix ICE report flags display.
rust-lang#92310 made some changes to the ICE report that displays the rustc flags, but it introduced a bug where a flag like `-Z incremental-verify-ich=yes` was being treated as-if it was `-Cincremental`. This corrupted the output and made it confusing. The cause was using `starts_with` instead of properly splitting the option.
For example, with the command like `rustc foo.rs -Cincremental=/tmp/a -Zincremental-verify-ich=yes --crate-type lib` would previously look like:
```
note: compiler flags: -C incremental -Z incremental --crate-type lib
```
It now looks like:
```
note: compiler flags: -C incremental=[REDACTED] -Z incremental-verify-ich=yes --crate-type lib
```
I added a `[REDACTED]` marker for `-Cincremental` so it is a little less confusing that a value has been removed.
Fixes rust-lang#1015881 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1119 | 1119 | | |
1120 | 1120 | | |
1121 | 1121 | | |
| 1122 | + | |
1122 | 1123 | | |
1123 | 1124 | | |
1124 | 1125 | | |
1125 | 1126 | | |
1126 | 1127 | | |
| 1128 | + | |
1127 | 1129 | | |
1128 | 1130 | | |
| 1131 | + | |
1129 | 1132 | | |
1130 | 1133 | | |
1131 | | - | |
| 1134 | + | |
| 1135 | + | |
1132 | 1136 | | |
1133 | 1137 | | |
1134 | 1138 | | |
1135 | | - | |
1136 | | - | |
1137 | | - | |
| 1139 | + | |
| 1140 | + | |
1138 | 1141 | | |
1139 | 1142 | | |
1140 | 1143 | | |
| |||
0 commit comments