Skip to content

Commit 25d04f8

Browse files
committed
make type-flags exhaustive
Didn't find any bugs here, but you really don't want these to fall out of sync.
1 parent 2e72448 commit 25d04f8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/librustc/ty/flags.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,9 @@ impl FlagComputation {
250250
ConstValue::Placeholder(_) => {
251251
self.add_flags(TypeFlags::HAS_FREE_REGIONS | TypeFlags::HAS_CT_PLACEHOLDER);
252252
}
253-
_ => {},
253+
ConstValue::Scalar(_) => { }
254+
ConstValue::Slice { data: _, start: _, end: _ } => { }
255+
ConstValue::ByRef { alloc: _, offset: _ } => { }
254256
}
255257
}
256258

0 commit comments

Comments
 (0)