Skip to content

Commit

Permalink
Eliminate parse_macro_input conflict in precompiled mode
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jul 26, 2023
1 parent 0fb672a commit b978854
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion serde_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b978854

Please sign in to comment.