aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-ast-resolve-path.cc
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2024-11-29 11:05:29 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-21 12:33:06 +0100
commite7bf1b6291ea18a3848f9fc7d44421554eeafe4f (patch)
tree50ce8303217f87cdac15faa1be6d3ff67f2a0e79 /gcc/rust/resolve/rust-ast-resolve-path.cc
parent6524f82fb901ddf5d2b8d60e220b9ec792d8aeeb (diff)
downloadgcc-e7bf1b6291ea18a3848f9fc7d44421554eeafe4f.zip
gcc-e7bf1b6291ea18a3848f9fc7d44421554eeafe4f.tar.gz
gcc-e7bf1b6291ea18a3848f9fc7d44421554eeafe4f.tar.bz2
gccrs: hir: Remove duplicate function in TraitItemFunc
Both TraitItemFunc::has_definition() and TraitItemFunc::has_block_defined() were exactly the same implementation, so remove one. gcc/rust/ChangeLog: * hir/tree/rust-hir-item.h: Remove TraitItemFunc::has_block_defined() * backend/rust-compile-implitem.cc (CompileTraitItem::visit): Call TraitItemFunc::has_definition() instead. * checks/errors/rust-const-checker.cc (ConstChecker::visit): Likewise. * checks/errors/rust-hir-pattern-analysis.cc (PatternChecker::visit): Likewise. * checks/errors/rust-unsafe-checker.cc (UnsafeChecker::visit): Likewise. * typecheck/rust-hir-trait-resolve.cc (ResolveTraitItemToRef::visit): Likewise.
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve-path.cc')
0 files changed, 0 insertions, 0 deletions