aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2021-08-27 14:17:34 +0100
committerPhilip Herron <philip.herron@embecosm.com>2021-08-27 14:17:34 +0100
commit1fc2a7fe7e2351e560e75a0a17960816728aa419 (patch)
treef8347335eef7a33e15de18afc2d223566784a9c2 /gcc/rust/backend
parent6b42381685595c34f21d5ce9ef1c31ceac76720d (diff)
downloadgcc-1fc2a7fe7e2351e560e75a0a17960816728aa419.zip
gcc-1fc2a7fe7e2351e560e75a0a17960816728aa419.tar.gz
gcc-1fc2a7fe7e2351e560e75a0a17960816728aa419.tar.bz2
Stop shadowing of hir mappings with substitution mappings
Name shadowing in C++ is annoying, it can cause subtle errors like here, the mappings which are substitition mappings, for example from an impl block, impl<X,Y> Foo(X), the type resolver here looks for any unconstrained type parameters by passing the relative mappings which can be null. Since the util mappings class shadowed this we never actually got this hidden nullptr segv. For QualifiedTypes we need to resolve the path similar to path expressions and we will need to be able to access the shadowed util hir mappings class.
Diffstat (limited to 'gcc/rust/backend')
0 files changed, 0 insertions, 0 deletions