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>2023-05-12 07:11:12 +0200
committerGitHub <noreply@github.com>2023-05-12 07:11:12 +0200
commitea332b593780509a114ffe03c4a772f5eb54c5c7 (patch)
tree267b1de702eaa8c588cbf5c83980099735e0ec12 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parent26e0c57dde7ea664457e3bf1340f832c722bd349 (diff)
parent27a3ce29e368f7f0167761f761bf5826c83cf12c (diff)
downloadrust-ea332b593780509a114ffe03c4a772f5eb54c5c7.tar.gz
rust-ea332b593780509a114ffe03c4a772f5eb54c5c7.zip
Rollup merge of #111179 - Zalathar:sort-groups, r=Mark-Simulacrum
Fix instrument-coverage tests by using Python to sort instantiation groups

#110942 was intended to fix a set of `-Cinstrument-coverage` tests, but it ended up silently *breaking* those tests on Linux, for annoying reasons detailed at #111171.

Dealing with `diff --ignore-matching-lines` across multiple platforms has been such a hassle that I've instead written a simple Python script that can detect instantiation groups in the output of `llvm-cov show`, and sort them in a predictable order so that they can be used as snapshots for an ordinary invocation of `diff`.

This approach should be much less error-prone, because it can't accidentally ignore the wrong lines, and any unforeseen problems will tend to result in a Python exception or a failing diff.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions