rust/src/librustc_passes
bors 9d98390765 Auto merge of #31581 - petrochenkov:patrefact, r=Manishearth
cc https://github.com/rust-lang/rust/pull/31487#issuecomment-182945101
plugin-[breaking-change]

The first commit renames `ast::Pat_` to `ast::PatKind` and uses its variants in enum qualified form. I've also taken the opportunity and renamed `PatKind::Region` into `PatKind::Ref`.

The second commit splits `PatKind::Enum` into `PatKind::TupleStruct` and `PatKind::UnitStruct`.
So, pattern kinds now correspond to their struct/variant kinds - `Struct`, `TupleStruct` and `UnitStruct`.
@nikomatsakis @nrc @arielb1 Are you okay with this naming scheme?
An alternative possible naming scheme is `PatKind::StructVariant`, `PatKind::TupleVariant`, `PatKind::UnitVariant` (it's probably closer to the common use, but I like it less).

I intend to apply these changes to HIR later, they should not necessarily go in the same nightly with https://github.com/rust-lang/rust/pull/31487
r? @Manishearth
2016-02-14 06:18:10 +00:00
..
Cargo.toml bootstrap: Add a bunch of Cargo.toml files 2016-02-11 11:12:32 -08:00
const_fn.rs Rename ast::Pat_ and its variants 2016-02-13 13:49:24 +03:00
consts.rs Auto merge of #31588 - soltanmm:layer, r=nikomatsakis 2016-02-13 15:25:23 +00:00
diagnostics.rs Update long error explanations 2016-02-07 13:03:35 +01:00
lib.rs mk: Move from -D warnings to #![deny(warnings)] 2016-01-24 20:35:55 -08:00
loops.rs Autoderef in librustc_passes 2016-02-12 19:28:42 +01:00
no_asm.rs [breaking-change] don't glob export ast::Expr_ variants 2016-02-11 12:34:48 +01:00
rvalues.rs
static_recursion.rs Instrument a bunch of tasks that employ the HIR map in one way or 2016-02-05 13:19:55 -05:00