diff options
| author | 许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com> | 2024-02-16 20:02:50 +0000 |
|---|---|---|
| committer | 许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com> | 2024-02-16 20:02:50 +0000 |
| commit | ec2cc761bc7067712ecc7734502f703fe3b024c8 (patch) | |
| tree | 7ab55cd9562da45b86c959f1b98c199b2b03ca92 /tests/ui/proc-macro/debug | |
| parent | e53d6dd35bb38b81dff4b00497f4c152e9009499 (diff) | |
| download | rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.tar.gz rust-ec2cc761bc7067712ecc7734502f703fe3b024c8.zip | |
[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives
Diffstat (limited to 'tests/ui/proc-macro/debug')
| -rw-r--r-- | tests/ui/proc-macro/debug/auxiliary/macro-dump-debug.rs | 4 | ||||
| -rw-r--r-- | tests/ui/proc-macro/debug/dump-debug-span-debug.rs | 6 | ||||
| -rw-r--r-- | tests/ui/proc-macro/debug/dump-debug.rs | 4 | ||||
| -rw-r--r-- | tests/ui/proc-macro/debug/dump-debug.stderr | 60 |
4 files changed, 37 insertions, 37 deletions
diff --git a/tests/ui/proc-macro/debug/auxiliary/macro-dump-debug.rs b/tests/ui/proc-macro/debug/auxiliary/macro-dump-debug.rs index 56ad0612f74..2d7bff83681 100644 --- a/tests/ui/proc-macro/debug/auxiliary/macro-dump-debug.rs +++ b/tests/ui/proc-macro/debug/auxiliary/macro-dump-debug.rs @@ -1,5 +1,5 @@ -// force-host -// no-prefer-dynamic +//@ force-host +//@ no-prefer-dynamic #![crate_type = "proc-macro"] #![crate_name = "macro_dump_debug"] diff --git a/tests/ui/proc-macro/debug/dump-debug-span-debug.rs b/tests/ui/proc-macro/debug/dump-debug-span-debug.rs index 102bd6b7b17..d4d9199bf3b 100644 --- a/tests/ui/proc-macro/debug/dump-debug-span-debug.rs +++ b/tests/ui/proc-macro/debug/dump-debug-span-debug.rs @@ -1,6 +1,6 @@ -// run-pass -// aux-build:macro-dump-debug.rs -// compile-flags: -Z span-debug +//@ run-pass +//@ aux-build:macro-dump-debug.rs +//@ compile-flags: -Z span-debug extern crate macro_dump_debug; diff --git a/tests/ui/proc-macro/debug/dump-debug.rs b/tests/ui/proc-macro/debug/dump-debug.rs index 0ed36b690f4..7a5cc979df9 100644 --- a/tests/ui/proc-macro/debug/dump-debug.rs +++ b/tests/ui/proc-macro/debug/dump-debug.rs @@ -1,5 +1,5 @@ -// run-pass -// aux-build:macro-dump-debug.rs +//@ run-pass +//@ aux-build:macro-dump-debug.rs extern crate macro_dump_debug; use macro_dump_debug::dump_debug; diff --git a/tests/ui/proc-macro/debug/dump-debug.stderr b/tests/ui/proc-macro/debug/dump-debug.stderr index db422b6012a..6aefacacd00 100644 --- a/tests/ui/proc-macro/debug/dump-debug.stderr +++ b/tests/ui/proc-macro/debug/dump-debug.stderr @@ -1,166 +1,166 @@ -TokenStream [Ident { ident: "ident", span: #0 bytes(130..135) }, Ident { ident: "r#ident", span: #0 bytes(151..158) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(176..177) }, Punct { ch: '=', spacing: Joint, span: #0 bytes(203..204) }, Punct { ch: '=', spacing: Joint, span: #0 bytes(204..205) }, Punct { ch: '>', spacing: Alone, span: #0 bytes(205..206) }, Group { delimiter: Parenthesis, stream: TokenStream [], span: #0 bytes(230..232) }, Group { delimiter: Bracket, stream: TokenStream [Ident { ident: "_", span: #0 bytes(258..259) }], span: #0 bytes(257..260) }, Literal { kind: Integer, symbol: "0", suffix: None, span: #0 bytes(315..316) }, Literal { kind: Float, symbol: "1.0", suffix: None, span: #0 bytes(321..324) }, Literal { kind: Str, symbol: "S", suffix: None, span: #0 bytes(329..332) }, Literal { kind: ByteStr, symbol: "B", suffix: None, span: #0 bytes(337..341) }, Literal { kind: StrRaw(0), symbol: "R", suffix: None, span: #0 bytes(346..350) }, Literal { kind: StrRaw(2), symbol: "R", suffix: None, span: #0 bytes(355..363) }, Literal { kind: ByteStrRaw(0), symbol: "BR", suffix: None, span: #0 bytes(368..374) }, Literal { kind: ByteStrRaw(2), symbol: "BR", suffix: None, span: #0 bytes(379..389) }, Literal { kind: Char, symbol: "C", suffix: None, span: #0 bytes(394..397) }, Literal { kind: Byte, symbol: "B", suffix: None, span: #0 bytes(402..406) }, Literal { kind: Integer, symbol: "0", suffix: Some("q"), span: #0 bytes(437..439) }, Literal { kind: Float, symbol: "1.0", suffix: Some("q"), span: #0 bytes(444..448) }, Literal { kind: Str, symbol: "S", suffix: Some("q"), span: #0 bytes(453..457) }, Literal { kind: ByteStr, symbol: "B", suffix: Some("q"), span: #0 bytes(462..467) }, Literal { kind: StrRaw(0), symbol: "R", suffix: Some("q"), span: #0 bytes(472..477) }, Literal { kind: StrRaw(2), symbol: "R", suffix: Some("q"), span: #0 bytes(482..491) }, Literal { kind: ByteStrRaw(0), symbol: "BR", suffix: Some("q"), span: #0 bytes(496..503) }, Literal { kind: ByteStrRaw(2), symbol: "BR", suffix: Some("q"), span: #0 bytes(508..519) }, Literal { kind: Char, symbol: "C", suffix: Some("q"), span: #0 bytes(524..528) }, Literal { kind: Byte, symbol: "B", suffix: Some("q"), span: #0 bytes(533..538) }] +TokenStream [Ident { ident: "ident", span: #0 bytes(132..137) }, Ident { ident: "r#ident", span: #0 bytes(153..160) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(178..179) }, Punct { ch: '=', spacing: Joint, span: #0 bytes(205..206) }, Punct { ch: '=', spacing: Joint, span: #0 bytes(206..207) }, Punct { ch: '>', spacing: Alone, span: #0 bytes(207..208) }, Group { delimiter: Parenthesis, stream: TokenStream [], span: #0 bytes(232..234) }, Group { delimiter: Bracket, stream: TokenStream [Ident { ident: "_", span: #0 bytes(260..261) }], span: #0 bytes(259..262) }, Literal { kind: Integer, symbol: "0", suffix: None, span: #0 bytes(317..318) }, Literal { kind: Float, symbol: "1.0", suffix: None, span: #0 bytes(323..326) }, Literal { kind: Str, symbol: "S", suffix: None, span: #0 bytes(331..334) }, Literal { kind: ByteStr, symbol: "B", suffix: None, span: #0 bytes(339..343) }, Literal { kind: StrRaw(0), symbol: "R", suffix: None, span: #0 bytes(348..352) }, Literal { kind: StrRaw(2), symbol: "R", suffix: None, span: #0 bytes(357..365) }, Literal { kind: ByteStrRaw(0), symbol: "BR", suffix: None, span: #0 bytes(370..376) }, Literal { kind: ByteStrRaw(2), symbol: "BR", suffix: None, span: #0 bytes(381..391) }, Literal { kind: Char, symbol: "C", suffix: None, span: #0 bytes(396..399) }, Literal { kind: Byte, symbol: "B", suffix: None, span: #0 bytes(404..408) }, Literal { kind: Integer, symbol: "0", suffix: Some("q"), span: #0 bytes(439..441) }, Literal { kind: Float, symbol: "1.0", suffix: Some("q"), span: #0 bytes(446..450) }, Literal { kind: Str, symbol: "S", suffix: Some("q"), span: #0 bytes(455..459) }, Literal { kind: ByteStr, symbol: "B", suffix: Some("q"), span: #0 bytes(464..469) }, Literal { kind: StrRaw(0), symbol: "R", suffix: Some("q"), span: #0 bytes(474..479) }, Literal { kind: StrRaw(2), symbol: "R", suffix: Some("q"), span: #0 bytes(484..493) }, Literal { kind: ByteStrRaw(0), symbol: "BR", suffix: Some("q"), span: #0 bytes(498..505) }, Literal { kind: ByteStrRaw(2), symbol: "BR", suffix: Some("q"), span: #0 bytes(510..521) }, Literal { kind: Char, symbol: "C", suffix: Some("q"), span: #0 bytes(526..530) }, Literal { kind: Byte, symbol: "B", suffix: Some("q"), span: #0 bytes(535..540) }] TokenStream [ Ident { ident: "ident", - span: #0 bytes(130..135), + span: #0 bytes(132..137), }, Ident { ident: "r#ident", - span: #0 bytes(151..158), + span: #0 bytes(153..160), }, Punct { ch: ',', spacing: Alone, - span: #0 bytes(176..177), + span: #0 bytes(178..179), }, Punct { ch: '=', spacing: Joint, - span: #0 bytes(203..204), + span: #0 bytes(205..206), }, Punct { ch: '=', spacing: Joint, - span: #0 bytes(204..205), + span: #0 bytes(206..207), }, Punct { ch: '>', spacing: Alone, - span: #0 bytes(205..206), + span: #0 bytes(207..208), }, Group { delimiter: Parenthesis, stream: TokenStream [], - span: #0 bytes(230..232), + span: #0 bytes(232..234), }, Group { delimiter: Bracket, stream: TokenStream [ Ident { ident: "_", - span: #0 bytes(258..259), + span: #0 bytes(260..261), }, ], - span: #0 bytes(257..260), + span: #0 bytes(259..262), }, Literal { kind: Integer, symbol: "0", suffix: None, - span: #0 bytes(315..316), + span: #0 bytes(317..318), }, Literal { kind: Float, symbol: "1.0", suffix: None, - span: #0 bytes(321..324), + span: #0 bytes(323..326), }, Literal { kind: Str, symbol: "S", suffix: None, - span: #0 bytes(329..332), + span: #0 bytes(331..334), }, Literal { kind: ByteStr, symbol: "B", suffix: None, - span: #0 bytes(337..341), + span: #0 bytes(339..343), }, Literal { kind: StrRaw(0), symbol: "R", suffix: None, - span: #0 bytes(346..350), + span: #0 bytes(348..352), }, Literal { kind: StrRaw(2), symbol: "R", suffix: None, - span: #0 bytes(355..363), + span: #0 bytes(357..365), }, Literal { kind: ByteStrRaw(0), symbol: "BR", suffix: None, - span: #0 bytes(368..374), + span: #0 bytes(370..376), }, Literal { kind: ByteStrRaw(2), symbol: "BR", suffix: None, - span: #0 bytes(379..389), + span: #0 bytes(381..391), }, Literal { kind: Char, symbol: "C", suffix: None, - span: #0 bytes(394..397), + span: #0 bytes(396..399), }, Literal { kind: Byte, symbol: "B", suffix: None, - span: #0 bytes(402..406), + span: #0 bytes(404..408), }, Literal { kind: Integer, symbol: "0", suffix: Some("q"), - span: #0 bytes(437..439), + span: #0 bytes(439..441), }, Literal { kind: Float, symbol: "1.0", suffix: Some("q"), - span: #0 bytes(444..448), + span: #0 bytes(446..450), }, Literal { kind: Str, symbol: "S", suffix: Some("q"), - span: #0 bytes(453..457), + span: #0 bytes(455..459), }, Literal { kind: ByteStr, symbol: "B", suffix: Some("q"), - span: #0 bytes(462..467), + span: #0 bytes(464..469), }, Literal { kind: StrRaw(0), symbol: "R", suffix: Some("q"), - span: #0 bytes(472..477), + span: #0 bytes(474..479), }, Literal { kind: StrRaw(2), symbol: "R", suffix: Some("q"), - span: #0 bytes(482..491), + span: #0 bytes(484..493), }, Literal { kind: ByteStrRaw(0), symbol: "BR", suffix: Some("q"), - span: #0 bytes(496..503), + span: #0 bytes(498..505), }, Literal { kind: ByteStrRaw(2), symbol: "BR", suffix: Some("q"), - span: #0 bytes(508..519), + span: #0 bytes(510..521), }, Literal { kind: Char, symbol: "C", suffix: Some("q"), - span: #0 bytes(524..528), + span: #0 bytes(526..530), }, Literal { kind: Byte, symbol: "B", suffix: Some("q"), - span: #0 bytes(533..538), + span: #0 bytes(535..540), }, ] |
