mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 14:01:51 +00:00
16 lines
339 B
Rust
16 lines
339 B
Rust
//@ force-host
|
|
//@ no-prefer-dynamic
|
|
|
|
#![crate_type = "proc-macro"]
|
|
|
|
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()
|
|
}
|