Skip to content
Permalink
Browse files

make type-flags exhaustive

Didn't find any bugs here, but you really don't want these to fall out
of sync.
  • Loading branch information...
nikomatsakis committed Oct 7, 2019
1 parent 2e72448 commit 25d04f83e306a5be0a24807252fe21df9d3d4703
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/librustc/ty/flags.rs
@@ -250,7 +250,9 @@ impl FlagComputation {
ConstValue::Placeholder(_) => {
self.add_flags(TypeFlags::HAS_FREE_REGIONS | TypeFlags::HAS_CT_PLACEHOLDER);
}
_ => {},
ConstValue::Scalar(_) => { }
ConstValue::Slice { data: _, start: _, end: _ } => { }
ConstValue::ByRef { alloc: _, offset: _ } => { }
}
}

0 comments on commit 25d04f8

Please sign in to comment.
You can’t perform that action at this time.