about summary refs log tree commit diff
path: root/compiler/rustc_ast/src/ast.rs
diff options
context:
space:
mode:
authordianne <diannes.gm@gmail.com>2025-05-07 02:59:18 -0700
committerdianne <diannes.gm@gmail.com>2025-05-07 06:47:16 -0700
commit30a0ac66dbb15ee8dd3951499b34df48e1d758a0 (patch)
treea62470aa3d1788ea3bb1d1ec720e41d37083caab /compiler/rustc_ast/src/ast.rs
parent3007433e2c65e289aa02155debf500d836539890 (diff)
downloadrust-30a0ac66dbb15ee8dd3951499b34df48e1d758a0.tar.gz
rust-30a0ac66dbb15ee8dd3951499b34df48e1d758a0.zip
delay introducing pattern bindings into scope
This splits introduction of bindings into scope
(`apply_pattern_bindings`) apart from manipulation of the pattern's
binding map (`fresh_binding`). By delaying the latter, we can keep
bindings from appearing in-scope in guards.

Since `fresh_binding` is now specifically for manipulating a pattern's
bindings map, this commit also inlines a use of `fresh_binding` that was
only adding to the innermost rib.
Diffstat (limited to 'compiler/rustc_ast/src/ast.rs')
0 files changed, 0 insertions, 0 deletions