Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix FnParam pattern location ternary logic
Condition was inverted, we should retrieve the locus only if we have a pattern. gcc/rust/ChangeLog: * typecheck/rust-tyty-call.cc (TypeCheckCallExpr::visit): Do not get a reference if the pattern does not exist. (TypeCheckMethodCallExpr::check): Likewise. Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
- Loading branch information