aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/util
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2024-03-13 16:44:00 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2024-08-01 16:52:28 +0200
commit215139e7e81edb17447a97f7612b581eeedf8f20 (patch)
tree3aada3d61554104300f959511cf95583eb71f93a /gcc/rust/util
parentb87c06fd351e0df489ac451b2b2a8c3c3c44ec72 (diff)
downloadgcc-215139e7e81edb17447a97f7612b581eeedf8f20.zip
gcc-215139e7e81edb17447a97f7612b581eeedf8f20.tar.gz
gcc-215139e7e81edb17447a97f7612b581eeedf8f20.tar.bz2
gccrs: Prevent getting immutable context with classic nr
Immutable name resolution context is not initialized when the classic name resolution is in use. It can therefore not be used, the getter would error out. gcc/rust/ChangeLog: * typecheck/rust-hir-type-check-path.cc (TypeCheckExpr::resolve_root_path): Only get immutable name resolution context when name resolution 2.0 is used. * typecheck/rust-hir-type-check-type.cc (TypeCheckType::resolve_root_path): Likewise. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/util')
0 files changed, 0 insertions, 0 deletions