aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/tree/rust-hir.h
diff options
context:
space:
mode:
authorvincent <jfan30@u.rochester.edu>2023-03-07 20:32:04 +0000
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:21:09 +0100
commitc4969068c9456b2559b3a7d056992177b23dc310 (patch)
tree1855117c827099550d166982670e96f19c8768a2 /gcc/rust/hir/tree/rust-hir.h
parent5104a38ae8563f011934452dee7f7aa3c89967ea (diff)
downloadgcc-c4969068c9456b2559b3a7d056992177b23dc310.zip
gcc-c4969068c9456b2559b3a7d056992177b23dc310.tar.gz
gcc-c4969068c9456b2559b3a7d056992177b23dc310.tar.bz2
gccrs: hir: add a helper function for visit
This commit adds a helper function for TypeCheckPattern::visit (HIR::RangePattern &pattern) to remove redundancy gcc/rust/ChangeLog: * typecheck/rust-hir-type-check-pattern.cc (TypeCheckPattern::visit): rewrite part code to helper function (TypeCheckPattern::typecheck_range_pattern_bound): helper function * typecheck/rust-hir-type-check-pattern.h (TypeCheckPattern::typecheck_range_pattern_bound): change the parameter of the function Signed-off-by: Jiakun Fan <jfan30@u.rochester.edu>
Diffstat (limited to 'gcc/rust/hir/tree/rust-hir.h')
0 files changed, 0 insertions, 0 deletions