Fix no_function build.

This commit is contained in:
Stephen Chung
2020-11-08 10:56:33 +08:00
parent b3d318ef7f
commit 760f6c3678
3 changed files with 15 additions and 10 deletions

View File

@@ -1265,6 +1265,7 @@ impl Module {
/// Get an iterator to the functions in the module.
#[cfg(not(feature = "no_optimize"))]
#[cfg(not(feature = "no_function"))]
#[inline(always)]
pub(crate) fn iter_fn(&self) -> impl Iterator<Item = &FuncInfo> {
self.functions.values()