make type-flags exhaustive

Didn't find any bugs here, but you really don't want these to fall out
of sync.
This commit is contained in:
Niko Matsakis 2019-10-07 10:57:44 -04:00
parent 2e7244807a
commit 25d04f83e3

View File

@ -250,7 +250,9 @@ impl FlagComputation {
ConstValue::Placeholder(_) => { ConstValue::Placeholder(_) => {
self.add_flags(TypeFlags::HAS_FREE_REGIONS | TypeFlags::HAS_CT_PLACEHOLDER); self.add_flags(TypeFlags::HAS_FREE_REGIONS | TypeFlags::HAS_CT_PLACEHOLDER);
} }
_ => {}, ConstValue::Scalar(_) => { }
ConstValue::Slice { data: _, start: _, end: _ } => { }
ConstValue::ByRef { alloc: _, offset: _ } => { }
} }
} }