Skip to content

Commit

Permalink
make type-flags exhaustive
Browse files Browse the repository at this point in the history
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 25d04f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/librustc/ty/flags.rs
Expand Up @@ -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: _ } => { }
}
}

Expand Down

0 comments on commit 25d04f8

Please sign in to comment.