diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2024-11-08 12:01:15 +0100 |
---|---|---|
committer | P-E-P <32375388+P-E-P@users.noreply.github.com> | 2024-11-20 13:36:42 +0000 |
commit | d424b0b467901e05bf17c2d168f1701ec81b7c08 (patch) | |
tree | 6088a4e2678e8805c0145f73041d539ecb84f07c /gcc/rust/hir/rust-hir-dump.cc | |
parent | 33df697af5143bac051ccceefedc2d6e9f9e0128 (diff) | |
download | gcc-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