]>
git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui-toml/nonstandard_macro_braces/conf_nonstandard_macro_braces.rs
1 // aux-build:proc_macro_derive.rs
4 #![warn(clippy::nonstandard_macro_braces)]
6 extern crate proc_macro_derive
;
11 #[derive(proc_macro_derive::DeriveSomething)]
14 proc_macro_derive
::foo_bar
!();
26 format_args
!($
($arg
)*)
30 macro_rules
! type_pos
{
36 macro_rules
! printlnfoo
{
38 println
!("{}", $thing
)
44 let _
= vec
! {1, 2, 3}
;
45 let _
= format
!["ugh {} stop being such a good compiler", "hello"];
46 let _
= matches
!{{}
, ()};
47 let _
= quote
!(let x
= 1;);
48 let _
= quote
::quote
!(match match match);
49 let _
= test
!(); // trigger when macro def is inside our own crate
52 let _
= quote
::quote
! {true || false}
;
53 let _
= vec
! [0 ,0 ,0];
54 let _
= format
!("fds{}fds", 10);
55 let _
= test2
!["{}{}{}", 1, 2, 3];
57 let _
: type_pos
!(usize) = vec
![];
59 eprint
!("test if user config overrides defaults");
61 printlnfoo
!["test if printlnfoo is triggered by println"];