diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-03-03 16:12:46 +0000 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:19:03 +0100 |
commit | 3df5ed955d338231ec896462b658283c46d31c60 (patch) | |
tree | e13f1e4d016065d65678bc074b49c4f899f21c64 /gcc/rust/hir/tree/rust-hir.h | |
parent | 312a861d86147327725abae14fd46f2074b0dcf6 (diff) | |
download | gcc-3df5ed955d338231ec896462b658283c46d31c60.zip gcc-3df5ed955d338231ec896462b658283c46d31c60.tar.gz gcc-3df5ed955d338231ec896462b658283c46d31c60.tar.bz2 |
gccrs: destructure parameter names.
When we have complex generic code you can end up with situations where we
compile types:
Maybe<<S as Foo>::A>
Into
Maybe<<placeholder:<Projection=::()>>>
This calls destructure to cleanup the naming here and avoid making non
canonical TREE_TYPES hitting the verify_gimple code triggering non-trival
constructors.
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
gcc/rust/ChangeLog:
* typecheck/rust-tyty.cc (ParamType::get_name): call destructure
Diffstat (limited to 'gcc/rust/hir/tree/rust-hir.h')
0 files changed, 0 insertions, 0 deletions