about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-02-14 06:18:10 +0000
committerbors <bors@rust-lang.org>2016-02-14 06:18:10 +0000
commit9d98390765bbe61ce2a39b40c99ae1a68bb6d1cc (patch)
tree39f9e3130578f12a0090479173df5f25e1330e7e /src/rustllvm/RustWrapper.cpp
parent09395bbfb0cacc6d53956c37cb85086bb8c837f2 (diff)
parent9f414a44a747edc7dc229e0eaf6fbda5e6ea10e1 (diff)
downloadrust-9d98390765bbe61ce2a39b40c99ae1a68bb6d1cc.tar.gz
rust-9d98390765bbe61ce2a39b40c99ae1a68bb6d1cc.zip
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
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions