Skip to content

typeck: refactor patterns => pat.rs + make the def_bm algo more declarative #63862

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 25 commits into from
Aug 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
11d4091
typeck: move `check_pat_walk` and children to `pat.rs`.
Centril Aug 23, 2019
dbe6d59
typeck/pat.rs: move note out of `check_dereferenceable` as it angers …
Centril Aug 23, 2019
d1580ee
typeck/pat.rs: extract `is_non_ref_pat`.
Centril Aug 23, 2019
8b4114b
typeck/pat.rs: extract `peel_off_references` and define `def_bm` algo…
Centril Aug 23, 2019
3ec5d07
typeck/pat.rs: simplify `peel_off_references`.
Centril Aug 23, 2019
23dc37d
typeck/pat.rs: extract `calc_default_binding_mode`.
Centril Aug 23, 2019
d891e70
typeck/pat.rs: extract `check_pat_lit`.
Centril Aug 24, 2019
d4afae9
typeck/pat.rs: extract `check_pat_range`.
Centril Aug 24, 2019
c16248d
typeck/pat.rs: extract `check_pat_ident`.
Centril Aug 24, 2019
3a51caa
typeck/pat.rs: extract `check_pat_tuple`.
Centril Aug 24, 2019
3de221a
typeck/pat.rs: extract `check_pat_box`.
Centril Aug 24, 2019
b4a4e71
typeck/pat.rs: extract `check_pat_ref`.
Centril Aug 24, 2019
f09f1a7
typeck/pat.rs: extract `check_pat_slice`.
Centril Aug 24, 2019
862bb38
typeck/pat.rs: simplify `check_pat_walk`.
Centril Aug 24, 2019
9d69783
typeck/pat.rs: `(*)` -> `(note_1)` for clarity.
Centril Aug 24, 2019
65deeae
typeck/pat.rs: `check_pat_top` is the entry point.
Centril Aug 24, 2019
41e8aed
typeck/pat.rs: `check_pat_walk` -> `check_pat`.
Centril Aug 24, 2019
97986b5
typeck/pat.rs: some common imports.
Centril Aug 24, 2019
2ab69ae
typeck/pat.rs: extract `new_ref_ty`.
Centril Aug 24, 2019
729fbeb
typeck/pat.rs: extract diagnostics from `check_pat_slice`.
Centril Aug 24, 2019
25f605a
typeck/pat.rs: extract `error_field_already_bound`.
Centril Aug 24, 2019
ba2a784
typeck/pat.rs: extract `error_unmentioned_fields`.
Centril Aug 24, 2019
5fbfcd8
typeck/pat.rs: extract `error_inexistent_fields`.
Centril Aug 24, 2019
4f75327
typeck/pat.rs: dedup in `check_pat_ref`.
Centril Aug 24, 2019
5a7e1cb
typeck/pat.rs: dedup in `check_pat_box`.
Centril Aug 24, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading