Fix no_closure builds.

This commit is contained in:
Stephen Chung
2021-03-29 13:07:10 +08:00
parent c0b2eee9f2
commit fc6c5ecd00
4 changed files with 9 additions and 8 deletions

View File

@@ -96,6 +96,7 @@ impl Drop for ArgBackup<'_> {
}
}
#[cfg(not(feature = "no_closure"))]
#[inline(always)]
pub fn ensure_no_data_race(
fn_name: &str,