aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-expr.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-01-06 16:57:52 +0000
committerPhilip Herron <philip.herron@embecosm.com>2022-01-06 16:57:52 +0000
commit34710b497e44d96b661ee89d50776313ef91b6b2 (patch)
tree63c383dfc5d672267684ae375bf4f5e6a046d121 /gcc/rust/backend/rust-compile-expr.h
parent69f6be3ee483c9895b4b5187a44b3e1c8be2ba63 (diff)
downloadgcc-34710b497e44d96b661ee89d50776313ef91b6b2.zip
gcc-34710b497e44d96b661ee89d50776313ef91b6b2.tar.gz
gcc-34710b497e44d96b661ee89d50776313ef91b6b2.tar.bz2
Add support for Wildcard pattern binding
Wildcard bindings allow us to bind expression to be unused such as: let _ = 123; They are more commonly used in destructuring of tuples such as: let my_tuple = (1,2); let (a,_) = my_tuple; This is the initial basic support for the basic form of let _ = ...; and it also allows us to ignore parameters within functions as well. Fixes #557
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
0 files changed, 0 insertions, 0 deletions