Skip to content

Commit d1d8d75

Browse files
authored
Merge pull request #233 from dtolnay/force
Don't gate force/unforce on wrap_proc_macro
2 parents a5c51b0 + 38869a8 commit d1d8d75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fallback.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ use unicode_xid::UnicodeXID;
1717

1818
/// Force use of proc-macro2's fallback implementation of the API for now, even
1919
/// if the compiler's implementation is available.
20-
#[cfg(wrap_proc_macro)]
2120
pub fn force() {
21+
#[cfg(wrap_proc_macro)]
2222
crate::detection::force_fallback();
2323
}
2424

2525
/// Resume using the compiler's implementation of the proc macro API if it is
2626
/// available.
27-
#[cfg(wrap_proc_macro)]
2827
pub fn unforce() {
28+
#[cfg(wrap_proc_macro)]
2929
crate::detection::unforce_fallback();
3030
}
3131

0 commit comments

Comments
 (0)