aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2025-07-21 09:36:16 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2025-08-05 16:36:57 +0200
commit796f8f694415245016e398a59773d4cb8db35479 (patch)
tree057ba0a0ebef7d91d406f880608536083afbff31 /gcc/testsuite/rust
parent04c0a86515027901bcb669e35b6cc9fb888a2d65 (diff)
downloadgcc-796f8f694415245016e398a59773d4cb8db35479.zip
gcc-796f8f694415245016e398a59773d4cb8db35479.tar.gz
gcc-796f8f694415245016e398a59773d4cb8db35479.tar.bz2
gccrs: ast: Use AnonConst for array type sizes
gcc/rust/ChangeLog: * ast/rust-expr.h: Add handling for deferred consts. * ast/rust-ast-visitor.cc (DefaultASTVisitor::visit): Likewise. * ast/rust-ast.cc (AnonConst::as_string): Likewise. (ArrayType::as_string): Likewise. * ast/rust-type.h (class ArrayType): Use AnonConst for sizes. * parse/rust-parse-impl.h (Parser::parse_anon_const): New function. (Parser::parse_slice_or_array_type): Call it. * parse/rust-parse.h: Declare it.
Diffstat (limited to 'gcc/testsuite/rust')
0 files changed, 0 insertions, 0 deletions