Commit 35ebdf9
committed
Auto merge of rust-lang#147728 - Enselic:gdbt-check-typo, r=Zalathar
tests: activate misspelled `gdb-check` in `function-arg-initialization.rs`
In 9253e12 a bunch of `gdbr-check` (for `rust-gdb`) directives and `gdbg-check` (for plain `gdb`) directives were added. But in two places the author accidentally wrote `gdbt-check` instead (`t` is next to `r` on the keyboard). This commit fixes that typo.
rust-lang#129218 later renamed `gdbr-check` to just `gdb-check` which is why we rename to `gdb-check` directly.
The test still passes locally for me after the change, but fails if I change the `gdb-check` checks to check for some other string, so the check seems to still perform its intended function.
Note that we need to add a `std::hint::black_box()` to avoid
$4 = <optimized out>
prints on at least `aarch64-gnu-llvm-20-1`.
After this there are no more instances of the string `gdbt` in the code base:
```console
$ git grep gdbt
```
try-job: dist-i586-gnu-i586-i686-musl1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
237 | 240 | | |
238 | 241 | | |
239 | 242 | | |
| |||
0 commit comments