Skip to content

Commit 8625a84

Browse files
committed
adding all ui tests to the configuration test as well
1 parent e2e6a02 commit 8625a84

File tree

3 files changed

+852
-10
lines changed

3 files changed

+852
-10
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//@compile-flags: --emit=link
2+
//@no-prefer-dynamic
3+
4+
#![crate_type = "proc-macro"]
5+
6+
extern crate proc_macro;
7+
8+
use proc_macro::{Delimiter, Group, Ident, TokenStream, TokenTree};
9+
10+
#[proc_macro]
11+
pub fn unsafe_block(input: TokenStream) -> TokenStream {
12+
let span = input.into_iter().next().unwrap().span();
13+
TokenStream::from_iter([TokenTree::Ident(Ident::new("unsafe", span)), {
14+
let mut group = Group::new(Delimiter::Brace, TokenStream::new());
15+
group.set_span(span);
16+
TokenTree::Group(group)
17+
}])
18+
}

0 commit comments

Comments
 (0)