diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-04-30 10:18:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-30 10:18:24 +0200 |
| commit | bd3e4474a6b47ed78d2a7b10ded1fc499ff0f798 (patch) | |
| tree | 3b51fe1c7da9000092ecf1f7673b9eb9dcafdf41 /compiler/rustc_codegen_llvm/src | |
| parent | 427288b3ce2d574847fdb41cc3184c893750e09a (diff) | |
| parent | 55a419f444378afb5eceb361959fa57eefce2be1 (diff) | |
| download | rust-bd3e4474a6b47ed78d2a7b10ded1fc499ff0f798.tar.gz rust-bd3e4474a6b47ed78d2a7b10ded1fc499ff0f798.zip | |
Rollup merge of #136160 - ShE3py:should-panic-backticks, r=thomcc
Remove backticks from `ShouldPanic::YesWithMessage`'s `TrFailedMsg`
More legible imo
```rs
#[test]
#[should_panic = "love"]
fn foo() {
assert!(1 == 2);
}
```
Before:
```
note: panic did not contain expected string
panic message: `"assertion failed: 1 == 2"`,
expected substring: `"love"`
```
After:
```
note: panic did not contain expected string
panic message: "assertion failed: 1 == 2"
expected substring: "love"
```
Also removed the comma as `assert_eq!` / `assert_ne!` don't use one.
``@rustbot`` label +A-libtest
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
