forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit 1ad43d2
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-muslFile tree
Expand file treeCollapse file tree
0 file changed
+0
-0
lines changedOpen diff view settings
Filter options
Expand file treeCollapse file tree
0 file changed
+0
-0
lines changedOpen diff view settings
0 commit comments