Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
// force-host
// no-prefer-dynamic
#![crate_type = "proc-macro"]
extern crate proc_macro;
use proc_macro::*;
#[proc_macro]
pub fn neg_one(_input: TokenStream) -> TokenStream {
TokenTree::Literal(Literal::i32_suffixed(-1)).into()
}
pub fn neg_one_float(_input: TokenStream) -> TokenStream {
TokenTree::Literal(Literal::f32_suffixed(-1.0)).into()