diff options
| author | Tobias Schottdorf <tobias.schottdorf@gmail.com> | 2017-07-21 19:29:43 -0400 |
|---|---|---|
| committer | Tobias Schottdorf <tobias.schottdorf@gmail.com> | 2017-07-30 10:19:53 -0400 |
| commit | 851c77088db304f0fba5318db39b3b31521aa274 (patch) | |
| tree | 7786739983a567c2bf9488991e99b7aaaa12393c /src/rustllvm/PassWrapper.cpp | |
| parent | 5c71e4ef90ef79c1ac79c4132333cbc80f5b85b9 (diff) | |
| download | rust-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
