]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #79284 - Nadrieril:constructor-module, r=varkor
authorbors <bors@rust-lang.org>
Fri, 27 Nov 2020 22:34:59 +0000 (22:34 +0000)
committerbors <bors@rust-lang.org>
Fri, 27 Nov 2020 22:34:59 +0000 (22:34 +0000)
Split match exhaustiveness into two files

I feel the constructor-related things in the `_match` module make enough sense on their own so I split them off. It makes `_match` feel less like a complicated mess. I'm not aware of PRs in progress against this module apart from my own so hopefully I'm not annoying too many people.
I have a lot of questions about the conventions in naming and modules around the compiler. Like, why is the module named `_match`? Could I rename it to `usefulness` maybe? Should `deconstruct_pat` be a submodule of `_match` since only `_match` uses it? Is it ok to move big piles of code around even if it makes git blame more difficult?

r? `@varkor`
`@rustbot` modify labels: +A-exhaustiveness-checking


Trivial merge