about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-08-13 21:11:14 +0200
committerGitHub <noreply@github.com>2024-08-13 21:11:14 +0200
commit65054ed35edeb6293c247020ae2259e8d1f0d984 (patch)
tree63d292c2825f3fcf30c6f5244861e1b39e196df7 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parentd4f5a89f6e9f62f147994b65cacf77e944e2aec6 (diff)
parent355f264d32cf449e00adeeaccfb17a1e2f3fdd18 (diff)
downloadrust-65054ed35edeb6293c247020ae2259e8d1f0d984.tar.gz
rust-65054ed35edeb6293c247020ae2259e8d1f0d984.zip
Rollup merge of #129049 - Zalathar:json-like, r=jieyouxu
compiletest: Don't panic on unknown JSON-like output lines

The `json::extract_rendered` function is called for both compiler output and non-compiler output, so it's inappropriate to panic just because a line starting with `{` didn't contain a compiler output message.

It is called from two places: when checking the output of a `ui` test process, and when printing the output of an arbitrary non-passing `ProcRes`. So unfortunately there's currently no easy way to know for sure whether it is seeing compiler output or not. Fortunately, neither call site appears to be relying on this panic; it's just an overzealous internal check.

Fixes #126373.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions