about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-12-19 12:28:00 +0000
committerbors <bors@rust-lang.org>2020-12-19 12:28:00 +0000
commit73feb31bc3d6b71e97d8ba63f3c52f975c2c93e8 (patch)
tree6035879ac45e514c16d19c29891573e402e97f6d /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent0718eeb64849b00e8f0a5cc4f96603b61ff8c049 (diff)
parentdfb4ea588c2af7633b2d01d2dfa3d6ffc7d07ee7 (diff)
downloadrust-73feb31bc3d6b71e97d8ba63f3c52f975c2c93e8.tar.gz
rust-73feb31bc3d6b71e97d8ba63f3c52f975c2c93e8.zip
Auto merge of #6471 - phansch:fix-bless, r=flip1995
Fix blessing of new reference files

Adding of new reference files wasn't handled correctly. It was trying to
read a file that didn't exist yet.

Instead of unwrapping, we now treat a missing reference file as empty
(`Vec::new`). This makes the following conditional work. We then also
have to re-read the reference file after it was being copied. This
second read is technically the same as in the old shell script, but
wasn't really obvious there. The shell script did a `-s` test which
reads the file as well.

changelog: internal: Fix `cargo dev bless` when new reference files are added
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions