aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-expr.cc
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-04-28 13:44:39 +0100
committerPhilip Herron <philip.herron@embecosm.com>2022-04-28 13:44:39 +0100
commitbbf171c9d25becdf77087a9e7d2b9e4bde030e80 (patch)
treef7459b4e772f45da4340b71edf8fc3504ca09299 /gcc/rust/backend/rust-compile-expr.cc
parente500a4164f988c23f3b1dcf87605388cf8f5d721 (diff)
downloadgcc-bbf171c9d25becdf77087a9e7d2b9e4bde030e80.zip
gcc-bbf171c9d25becdf77087a9e7d2b9e4bde030e80.tar.gz
gcc-bbf171c9d25becdf77087a9e7d2b9e4bde030e80.tar.bz2
Fix ICE on missing TypeParam within type context
During type-resolution we resolve/type-check traits in a query based way. So when we reference a trait we look it up as required but this left a case for the privacy pass where the type-context information on the trait when the trait was not used meant there was no type-checking performed on the trait. This patch adds an interface to directly resolve the trait when as we iterate the crate so we do it as required. There is already code in the trait resolver to check if we have already type-resolved this trait. Fixes #1128
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.cc')
0 files changed, 0 insertions, 0 deletions