diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2024-11-08 12:01:15 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-21 12:32:57 +0100 |
commit | a99d29095028be7a68c876d6124b8e845fc80fef (patch) | |
tree | 54a421727f0e52c525281ba70ce46d6039ce75c5 /gcc/json-parsing.cc | |
parent | 6246f658336099f328078f92f277ed461c3bb7e5 (diff) | |
download | gcc-a99d29095028be7a68c876d6124b8e845fc80fef.zip gcc-a99d29095028be7a68c876d6124b8e845fc80fef.tar.gz gcc-a99d29095028be7a68c876d6124b8e845fc80fef.tar.bz2 |
gccrs: 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/json-parsing.cc')
0 files changed, 0 insertions, 0 deletions