about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorTobias Schottdorf <tobias.schottdorf@gmail.com>2017-07-21 19:29:43 -0400
committerTobias Schottdorf <tobias.schottdorf@gmail.com>2017-07-30 10:19:53 -0400
commit851c77088db304f0fba5318db39b3b31521aa274 (patch)
tree7786739983a567c2bf9488991e99b7aaaa12393c /src/rustllvm/PassWrapper.cpp
parent5c71e4ef90ef79c1ac79c4132333cbc80f5b85b9 (diff)
downloadrust-851c77088db304f0fba5318db39b3b31521aa274.tar.gz
rust-851c77088db304f0fba5318db39b3b31521aa274.zip
default binding modes: add pat_binding_modes
This PR kicks off the implementation of the [default binding modes RFC][1] by
introducing the `pat_binding_modes` typeck table mentioned in the [mentoring
instructions][2].

`pat_binding_modes` is populated in `librustc_typeck/check/_match.rs` and
used wherever the HIR would be scraped prior to this PR. Unfortunately, one
blemish, namely a two callers to `contains_explicit_ref_binding`, remains.
This will likely have to be removed when the second part of [1], the
`pat_adjustments` table, is tackled. Appropriate comments have been added.

See #42640.

[1]: https://github.com/rust-lang/rfcs/pull/2005
[2]: https://github.com/rust-lang/rust/issues/42640#issuecomment-313535089
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions