blob: 93a339840d6211e514a1a054783a69b17ff3aa31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// force-host
// no-prefer-dynamic
#![feature(allow_internal_unsafe)]
#![feature(allow_internal_unstable)]
#![crate_type = "proc-macro"]
extern crate proc_macro;
use proc_macro::*;
#[proc_macro]
#[allow_internal_unstable(proc_macro_internals)]
#[allow_internal_unsafe]
#[deprecated(since = "1.0.0", note = "test")]
pub fn with_attrs(_: TokenStream) -> TokenStream {
"
extern crate proc_macro;
use ::proc_macro::bridge;
fn contains_unsafe() { unsafe {} }
".parse().unwrap()
}
|