2019-10-22 00:08:14 +08:00
|
|
|
//@ check-pass
|
2019-10-22 00:08:14 +08:00
|
|
|
//@ force-host
|
|
|
|
//@ no-prefer-dynamic
|
2024-03-25 14:24:08 +00:00
|
|
|
//@ needs-unwind compiling proc macros with panic=abort causes a warning
|
2019-10-22 00:08:14 +08:00
|
|
|
|
|
|
|
#![deny(deprecated)]
|
2019-10-22 00:08:14 +08:00
|
|
|
|
|
|
|
#![crate_type = "proc-macro"]
|
|
|
|
|
|
|
|
extern crate proc_macro;
|
|
|
|
use proc_macro::*;
|
|
|
|
|
|
|
|
#[proc_macro]
|
|
|
|
#[deprecated(since = "1.0.0", note = "test")]
|
|
|
|
pub fn test_compile_without_warning_with_deprecated(_: TokenStream) -> TokenStream {
|
2019-10-22 00:08:14 +08:00
|
|
|
TokenStream::new()
|
2019-10-22 00:08:14 +08:00
|
|
|
}
|