aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/parse/rust-parse-impl.h
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2022-06-24 11:54:08 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2022-06-30 16:48:18 +0200
commit49276efb07ef18098c0f72970acf523a1fc31eb8 (patch)
tree280ad30fe8ef571ebd5be9b5001a96af3f5338cf /gcc/rust/parse/rust-parse-impl.h
parent81abc8623cb75fa18315c65e94c5965ec36fdb54 (diff)
downloadgcc-49276efb07ef18098c0f72970acf523a1fc31eb8.zip
gcc-49276efb07ef18098c0f72970acf523a1fc31eb8.tar.gz
gcc-49276efb07ef18098c0f72970acf523a1fc31eb8.tar.bz2
ast: Keep ConstGenericArg as default value for ConstGenericParam
Diffstat (limited to 'gcc/rust/parse/rust-parse-impl.h')
-rw-r--r--gcc/rust/parse/rust-parse-impl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/parse/rust-parse-impl.h b/gcc/rust/parse/rust-parse-impl.h
index a36107b..6a1a3a5 100644
--- a/gcc/rust/parse/rust-parse-impl.h
+++ b/gcc/rust/parse/rust-parse-impl.h
@@ -2901,7 +2901,7 @@ Parser<ManagedTokenSource>::parse_generic_param (EndTokenPred is_end_token)
param = std::unique_ptr<AST::ConstGenericParam> (
new AST::ConstGenericParam (name_token->get_str (), std::move (type),
- nullptr, std::move (outer_attrs),
+ default_expr, std::move (outer_attrs),
token->get_locus ()));
break;