]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: ast: PathPattern: Remove `remove_all_segments` method
authorArthur Cohen <arthur.cohen@embecosm.com>
Mon, 24 Jun 2024 14:50:43 +0000 (16:50 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Wed, 19 Mar 2025 14:32:04 +0000 (15:32 +0100)
commitb4e8bc15f597e1f0e1a5dfae8081f37efaabb88c
treee5ce457d690bf338b4ed1264dd260edaf3fed7cd
parentbc2331a565d8005b91495df627f3fa72870770cc
gccrs: ast: PathPattern: Remove `remove_all_segments` method

This method was used only for stripping PathPattern AST nodes during
`cfg-strip`, which seems like a misnomer and makes it a good candidate
for simplification.

gcc/rust/ChangeLog:

* ast/rust-path.h (class PathInExpression): Remove `remove_all_segments`
method, add a `marked_for_strip` flag instead.
gcc/rust/ast/rust-path.h