compiletest: Use //@ prefixes also for debuginfo test directives

So that when we later add support for revisions we can use the same
syntax for revisions as elsewhere.

This also prevents people from making typos for commands since
`src/tools/compiletest/src/directives/directive_names.rs` will catch such
typos now.

Note that we one FIXME for a non-trivial change for later:
```
// FIXME(148097): Change `// cdb-checksimple_closure` to `//@ cdb-check:simple_closure`
```
This commit is contained in:
Martin Nordholts
2025-10-17 06:19:58 +02:00
parent c871d09d1c
commit 5b57d02e9f
161 changed files with 6562 additions and 6556 deletions
+6 -6
View File
@@ -5,17 +5,17 @@
// === GDB TESTS ===================================================================================
// gdb-command:run
//@ gdb-command:run
// gdb-command:print *abc
// gdb-check:$1 = enum_thinlto::ABC::TheA{x: 0, y: 8970181431921507452}
//@ gdb-command:print *abc
//@ gdb-check:$1 = enum_thinlto::ABC::TheA{x: 0, y: 8970181431921507452}
// === LLDB TESTS ==================================================================================
// lldb-command:run
//@ lldb-command:run
// lldb-command:v *abc
// lldb-check:(enum_thinlto::ABC) *abc = TheA{x:0, y:8970181431921507452} { x = 0 y = 8970181431921507452 }
//@ lldb-command:v *abc
//@ lldb-check:(enum_thinlto::ABC) *abc = TheA{x:0, y:8970181431921507452} { x = 0 y = 8970181431921507452 }
#![allow(unused_variables)]