mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 02:03:53 +00:00
41e4a3e086
This gives better output for code produced by proc macros.
12 lines
732 B
Plaintext
12 lines
732 B
Plaintext
PRINT-ATTR INPUT (DISPLAY): /// 1
|
|
#[rustfmt::attr2] #[doc = "3"] #[doc = "4"] #[rustfmt::attr5] /// 6
|
|
#[print_attr(nodebug)] struct S;
|
|
PRINT-ATTR RE-COLLECTED (DISPLAY): #[doc = " 1"] #[rustfmt::attr2] #[doc = "3"] #[doc = "4"] #[rustfmt::attr5]
|
|
#[doc = " 6"] #[print_attr(nodebug)] struct S;
|
|
PRINT-ATTR DEEP-RE-COLLECTED (DISPLAY): #[doc = " 1"] #[rustfmt :: attr2] #[doc = "3"] #[doc = "4"]
|
|
#[rustfmt :: attr5] #[doc = " 6"] #[print_attr(nodebug)] struct S;
|
|
PRINT-ATTR INPUT (DISPLAY): #[doc = " 1"] #[rustfmt::attr2] #[doc = "3"] #[doc = "4"] #[rustfmt::attr5]
|
|
#[doc = " 6"] struct S;
|
|
PRINT-ATTR DEEP-RE-COLLECTED (DISPLAY): #[doc = " 1"] #[rustfmt :: attr2] #[doc = "3"] #[doc = "4"]
|
|
#[rustfmt :: attr5] #[doc = " 6"] struct S;
|