Skip to content

Commit 93f43ce

Browse files
authored
Merge pull request #2967 from dtolnay/tricfg
Specify the cfg in which `tri!` is used
2 parents 35c9631 + b6c7ce8 commit 93f43ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

serde/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ mod lib {
221221
// performed implicitly by the `?` operator or the standard library's `try!`
222222
// macro. This simplified macro gives a 5.5% improvement in compile time
223223
// compared to standard `try!`, and 9% improvement compared to `?`.
224-
#[allow(unused_macros)]
224+
#[cfg(not(no_serde_derive))]
225225
macro_rules! tri {
226226
($expr:expr) => {
227227
match $expr {

0 commit comments

Comments
 (0)