Always check flatten assertions

This commit is contained in:
David Tolnay
2018-03-25 12:32:06 +02:00
parent d45ca2f5e4
commit e5ed440136
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ fn check_getter(cx: &Ctxt, cont: &Container) {
fn check_flatten(cx: &Ctxt, cont: &Container) {
match cont.data {
Data::Enum(_) => {
debug_assert!(!cont.attrs.has_flatten());
assert!(!cont.attrs.has_flatten());
}
Data::Struct(_, _) => {
for field in cont.data.all_fields() {