Replace the deprecated TokenStream::empty() with new()

Requires proc-macro2 0.4.4
This commit is contained in:
Luca Barbato
2018-06-02 16:01:35 +02:00
committed by gnzlbg
parent 2b6148d623
commit 4f2eff627e
2 changed files with 3 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ pub fn assert_instr(
// for.
let disable_assert_instr = std::env::var("STDSIMD_DISABLE_ASSERT_INSTR").is_ok();
let maybe_ignore = if cfg!(optimized) && !disable_assert_instr {
TokenStream::empty()
TokenStream::new()
} else {
(quote! { #[ignore] }).into()
};