aboutsummaryrefslogtreecommitdiff
path: root/gcc/json.cc
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2023-03-24 22:17:36 +0000
committerPhilip Herron <philip.herron@embecosm.com>2023-03-24 23:23:18 +0000
commit03bce1d0847bff5870e8ed18799a8b2c6ab4728d (patch)
tree42e7b59d60d990d90fc2bb10e242bfbf1e45627b /gcc/json.cc
parentc6c02b9135e54e181ea6bdd8892a243c50cb6c7a (diff)
downloadgcc-03bce1d0847bff5870e8ed18799a8b2c6ab4728d.zip
gcc-03bce1d0847bff5870e8ed18799a8b2c6ab4728d.tar.gz
gcc-03bce1d0847bff5870e8ed18799a8b2c6ab4728d.tar.bz2
gccrs: Fix ICE on parsing trait object missing dyn keyword
Trait objects are not required to use the 'dyn' keyword though it is depreciated in later editions/version of Rustc. This patch handles the case when we query the type for an HIR::Item which happens to be an HIR::Trait and return a trait object or error. Fixes #2037 gcc/rust/ChangeLog: * typecheck/rust-hir-type-check-item.cc (TypeCheckItem::visit): return a TraitObject gcc/testsuite/ChangeLog: * rust/compile/issue-2037.rs: New test. Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/json.cc')
0 files changed, 0 insertions, 0 deletions