mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-02 06:28:20 +03:00
b3ca36b2d9
It seems that Semantics::scope, if given a statement node, won't resolve locals that were defined in the current scope, only in parent scopes. Not sure if this is intended / expected behavior, but we work around it for now by finding another nearby node to use as the scope (e.g. the expression inside the EXPR_STMT).