Support converting literal FnPtr.

This commit is contained in:
Stephen Chung
2022-01-08 14:00:41 +08:00
parent 047e65223d
commit afb651d0aa
2 changed files with 33 additions and 4 deletions

View File

@@ -483,7 +483,7 @@ impl Stmt {
Self::Expr(Expr::Stmt(s)) => s.iter().all(Stmt::is_block_dependent),
Self::FnCall(x, _) | Self::Expr(Expr::FnCall(x, _)) => {
x.namespace.is_none() && x.name == KEYWORD_EVAL
!x.is_qualified() && x.name == KEYWORD_EVAL
}
#[cfg(not(feature = "no_module"))]