about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-09-10 07:09:20 +0200
committerGitHub <noreply@github.com>2022-09-10 07:09:20 +0200
commit3ddb0482a3cc53cc1fea96a0c72b372a7b99790b (patch)
tree1c299c6f57ba31c408252b0c03f5e088d56f435f /compiler/rustc_codegen_llvm/src/llvm_util.rs
parent857a43d2c8fedc0bcb7c51d64b1b7b29d754d16a (diff)
parented0f0377e2620ed3c70a42890ca420c1472eb788 (diff)
downloadrust-3ddb0482a3cc53cc1fea96a0c72b372a7b99790b.tar.gz
rust-3ddb0482a3cc53cc1fea96a0c72b372a7b99790b.zip
Rollup merge of #101595 - ehuss:fix-ice-flag-report, r=tmiasko
Fix ICE report flags display.

#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 #101588
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions