Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
derives
/
auxiliary
/
derive-marker-tricky.rs
blob: f31baa43c3d134937beec8768774d75d1b4e2408 [
file
] [
log
] [
blame
]
extern
crate proc_macro
;
use
proc_macro
::*;
#[
proc_macro_derive
(
NoMarker
)]
pub
fn
f
(
input
:
TokenStream
)
->
TokenStream
{
if
input
.
to_string
().
contains
(
"rustc_copy_clone_marker"
)
{
panic
!(
"found `#[rustc_copy_clone_marker]`"
);
}
TokenStream
::
new
()
}