aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/rust-hir-dump.cc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2024-11-08 12:01:15 +0100
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2024-11-20 13:36:42 +0000
commitd424b0b467901e05bf17c2d168f1701ec81b7c08 (patch)
tree6088a4e2678e8805c0145f73041d539ecb84f07c /gcc/rust/hir/rust-hir-dump.cc
parent33df697af5143bac051ccceefedc2d6e9f9e0128 (diff)
downloadgcc-d424b0b467901e05bf17c2d168f1701ec81b7c08.zip
gcc-d424b0b467901e05bf17c2d168f1701ec81b7c08.tar.gz
gcc-d424b0b467901e05bf17c2d168f1701ec81b7c08.tar.bz2
Fix Generic type retrieval
gcc/rust/ChangeLog: * hir/rust-ast-lower-type.cc (ASTLowerGenericParam::visit): Forward an optional to the constructor. * hir/tree/rust-hir-item.cc (TypeParam::TypeParam): Use an optional in the constructor. (TypeParam::operator=): Ensure the TypeParam has a type properly. (TypeParam::get_type_mappings): Likewise. * hir/tree/rust-hir-item.h: Wrap the type smart pointer into an optional. * hir/tree/rust-hir.cc (TypeParam::as_string): Unwrap optional type correctly. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/hir/rust-hir-dump.cc')
0 files changed, 0 insertions, 0 deletions