aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-pattern.cc
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-05-23 14:28:23 +0000
committerGitHub <noreply@github.com>2022-05-23 14:28:23 +0000
commit63762cc243c643c10aca7e07dfd6abe9b78748f8 (patch)
tree1e453635c61d283bb56f30efe00331f87fbef715 /gcc/rust/backend/rust-compile-pattern.cc
parentc7008d3e254786b5e752aa61e067f62c38042b81 (diff)
parenta91b138bbc26408d97bbe870553b4276f8bf1f71 (diff)
downloadgcc-63762cc243c643c10aca7e07dfd6abe9b78748f8.zip
gcc-63762cc243c643c10aca7e07dfd6abe9b78748f8.tar.gz
gcc-63762cc243c643c10aca7e07dfd6abe9b78748f8.tar.bz2
Merge #1241
1241: Implement name resolution for the IfLet expression. r=philberty a=antego Addresses #1177. Guidance from the ticket #1177: > You should be able to copy how we do name resolution for the if blocks from that file. Though if let statements add a new binding and scope level so you need to declare the pattern so you should be able to see how that is done from rust-ast-resolve-stmt. I don't understand how to modify the block expression resolution so that it can handle the `IfLet` expression. For now, I copied the code from the `MatchExpr` resolution. Not sure how to test it either and what is the desired expected result of the name resolution so I just hope that reviewers will spot the errors. I created this PR in order to get some guidance about how to proceed with it. Thanks! Co-authored-by: antego <antego@users.noreply.github.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-pattern.cc')
0 files changed, 0 insertions, 0 deletions