]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add binding context class
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Sun, 6 Apr 2025 15:09:42 +0000 (17:09 +0200)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Thu, 24 Apr 2025 16:53:44 +0000 (16:53 +0000)
commitca4175b0e5c86d864d973875f7bb793bdcd2c7dd
tree3a6497d97fe070347618e58ea4a07e048db1e0d8
parent22c008cc523fcc12fe03a244a61d327e06df35bf
Add binding context class

We need to differentiate bindings types, so the same binding cannot be
reused multiple time in a product binding.

gcc/rust/ChangeLog:

* resolve/rust-name-resolution-context.h (struct Binding): Add Binding
struct to differentiate Or and Product bindings in patterns.
(enum class): Add Binding kind.
(class BindingContext): Add binding context with Binding stack.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/resolve/rust-name-resolution-context.h