aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-unswitch.cc
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2024-02-27 16:34:23 -0500
committerArthur Cohen <arthur.cohen@embecosm.com>2024-08-01 13:12:14 +0200
commitebbf7bedbabc2a52fd0cd2b97611eb5d9bf02086 (patch)
treebe426b6c1bfaf532d8eec343f3fa2a9c3daca93a /gcc/tree-ssa-loop-unswitch.cc
parent38aa479b0333b66057553635952cadeafb6c89d1 (diff)
downloadgcc-ebbf7bedbabc2a52fd0cd2b97611eb5d9bf02086.zip
gcc-ebbf7bedbabc2a52fd0cd2b97611eb5d9bf02086.tar.gz
gcc-ebbf7bedbabc2a52fd0cd2b97611eb5d9bf02086.tar.bz2
gccrs: Ensure TupleStructPattern and TuplePattern have items
Note that instances of both classes which have been moved from will have (items == nullptr). gcc/rust/ChangeLog: * ast/rust-pattern.h (class TupleStructPattern): Assert that items != nullptr. (class TuplePattern): Likewise. (TupleStructPattern::has_items): Remove. (TuplePattern::has_tuple_pattern_items): Likewise. * parse/rust-parse-impl.h (Parser::parse_ident_leading_pattern): Prevent construction of TupleStructPattern with (items == nullptr). (Parser::parse_pattern_no_alt): Likewise. * ast/rust-ast-collector.cc (TokenCollector::visit): Remove usage of TupleStructPattern::has_items. * ast/rust-ast-visitor.cc (DefaultASTVisitor::visit): Likewise. * resolve/rust-early-name-resolver.cc (EarlyNameResolver::visit): Likewise. gcc/testsuite/ChangeLog: * rust/compile/pattern-struct.rs: Fix test. Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/tree-ssa-loop-unswitch.cc')
0 files changed, 0 insertions, 0 deletions