Skip to content

Commit

Permalink
Use simpler usage check for now
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Dec 18, 2023
1 parent 58dabe2 commit d6a8907
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/analyzer/expr/call/arguments_analyzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,13 @@ pub(crate) fn check_arguments_match(
for (_, arg_expr) in args.iter() {
let was_inside_call = context.inside_general_use;

if matches!(functionlike_info.effects, FnEffect::Some(_))
|| matches!(functionlike_info.effects, FnEffect::Arg(_))
|| functionlike_info.pure_can_throw
|| functionlike_info.user_defined
{
context.inside_general_use = true;
}
// if matches!(functionlike_info.effects, FnEffect::Some(_))
// || matches!(functionlike_info.effects, FnEffect::Arg(_))
// || functionlike_info.pure_can_throw
// || functionlike_info.user_defined
// {
context.inside_general_use = true;
// }

// don't analyse closures here
if !matches!(arg_expr.2, aast::Expr_::Lfun(_) | aast::Expr_::Efun(_)) {
Expand Down

0 comments on commit d6a8907

Please sign in to comment.