about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-07-25 11:16:33 +0200
committerGitHub <noreply@github.com>2025-07-25 11:16:33 +0200
commite9744c9ec1587144de03e4b6e5aa1597e60c7cb9 (patch)
tree4ba0f340a574d0ecf58f172b8ea6a509056ba03c /compiler/rustc_parse/src/errors.rs
parent2e54f7f0a191a9319bf95f18810d48bd6c200e7e (diff)
parent54cc45d5b4a949fa29813253efc7897e27f48fe2 (diff)
downloadrust-e9744c9ec1587144de03e4b6e5aa1597e60c7cb9.tar.gz
rust-e9744c9ec1587144de03e4b6e5aa1597e60c7cb9.zip
Rollup merge of #143401 - Enselic:no-stack-backtrace-print-in-display, r=davidtwco
tests: Don't check for self-printed output in std-backtrace.rs test

The `Display` implementation for `Backtrace` used to print

    stack backtrace:

but that print was since removed. See https://github.com/rust-lang/backtrace-rs/pull/286 and https://github.com/rust-lang/rust/pull/69042. To make the existing test pass, the print was added to the test instead. But it doesn't make sense to check for something that the test itself does since that will not detect any regressions in the implementation of `Backtrace`.

What the test _should_ check is that "stack backtrace:" is _not_ printed in `Display` of `Backtrace`. So do that instead.

This is one small steps towards resolving https://github.com/rust-lang/rust/issues/71706. The next steps after this step involves extending and hardening that test further.
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
0 files changed, 0 insertions, 0 deletions