Eliminate parse_macro_input conflict in precompiled mode

This commit is contained in:
David Tolnay 2023-07-26 00:44:55 -07:00
parent 0fb672a1ef
commit b978854258
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -77,7 +77,9 @@ mod internals;
use proc_macro::TokenStream;
#[cfg(precompiled)]
use std::sync::atomic::AtomicBool;
use syn::{parse_macro_input, DeriveInput};
#[cfg(not(precompiled))]
use syn::parse_macro_input;
use syn::DeriveInput;
#[macro_use]
mod bound;