aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2023-06-20 10:39:54 +0100
committerPhilip Herron <philip.herron@embecosm.com>2023-06-21 09:00:30 +0000
commit3a27f1e9058c67a153f5911af052ccbf253e7e58 (patch)
tree2740b9ff8dc9b8329ca0ee9eac97373aeed65094 /gcc/rust/resolve
parentdbf982cbd898adc581a28934f701acd6db27d5f8 (diff)
downloadgcc-3a27f1e9058c67a153f5911af052ccbf253e7e58.zip
gcc-3a27f1e9058c67a153f5911af052ccbf253e7e58.tar.gz
gcc-3a27f1e9058c67a153f5911af052ccbf253e7e58.tar.bz2
gccrs: fix unsafe lookup at zero index
Using lookup_predciate by DefId is the safe way to get the relevant predicate. Addresses #1893 gcc/rust/ChangeLog: * typecheck/rust-hir-trait-resolve.cc: use lookup_predicate (DefID) * typecheck/rust-hir-type-check-path.cc (TypeCheckExpr::resolve_segments): fix formatting Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/resolve')
0 files changed, 0 insertions, 0 deletions