aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-macro.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2021-01-08 15:34:13 +0000
committerPhilip Herron <herron.philip@googlemail.com>2021-01-09 14:47:04 +0000
commit705b8b73aa694a8cc79c4459beca192145f97542 (patch)
tree1eb94ea91366656b483d7f958da5a7bb43f1dcad /gcc/rust/ast/rust-macro.h
parent5a11dd79fcbcfc8b3fcd41f809c7fa373d637e41 (diff)
downloadgcc-705b8b73aa694a8cc79c4459beca192145f97542.zip
gcc-705b8b73aa694a8cc79c4459beca192145f97542.tar.gz
gcc-705b8b73aa694a8cc79c4459beca192145f97542.tar.bz2
There was a bug with LetStmts where we name resolved the identifier
pattern first before the init expression. This lead to a situation where shadowing rules were broken. Example: let x = 1; let x = x + 1; In this example the code was referencing the 2nd LetStmt as the resolved name for the Identifier reference.
Diffstat (limited to 'gcc/rust/ast/rust-macro.h')
0 files changed, 0 insertions, 0 deletions