1
0
mirror of https://github.com/bspeice/qadapt synced 2025-07-04 07:15:03 -04:00

Renaming and a new macro

This commit is contained in:
2018-12-06 23:02:44 -05:00
parent a1ee8934b4
commit 65673e1af2
8 changed files with 164 additions and 63 deletions

View File

@ -155,7 +155,7 @@ fn escape_return(ts: TokenStream) -> TokenStream {
/// separate thread, or defers allocations via closure/Future, those results
/// will not trigger an error.
#[proc_macro_attribute]
pub fn allocate_panic(_attr: TokenStream, item: TokenStream) -> TokenStream {
pub fn no_alloc(_attr: TokenStream, item: TokenStream) -> TokenStream {
let mut protected_fn: Vec<TokenTree> = Vec::new();
let mut item_iter = item.into_iter();