Fix builds.

This commit is contained in:
Stephen Chung
2021-01-18 10:56:42 +08:00
parent ec272cf9b9
commit 4a8debb5ed
3 changed files with 17 additions and 10 deletions

View File

@@ -1676,9 +1676,8 @@ impl Module {
}
/// Get an iterator to the functions in the [`Module`].
#[cfg(not(feature = "no_optimize"))]
#[cfg(not(feature = "no_function"))]
#[inline(always)]
#[allow(dead_code)]
pub(crate) fn iter_fn(&self) -> impl Iterator<Item = &FuncInfo> {
self.functions.values()
}