Work around for #64506

This commit is contained in:
Wesley Wiser 2019-09-17 05:48:38 -04:00
parent 9333514102
commit 4e58e2e3a3
2 changed files with 11 additions and 1 deletions

View file

@ -397,6 +397,10 @@ pub enum UnsupportedOpInfo<'tcx> {
/// while evaluating `const` items.
ReadOfStaticInConst,
/// FIXME(#64506) Error used to work around accessing projections of
/// uninhabited types.
UninhabitedValue,
// -- Everything below is not categorized yet --
FunctionAbiMismatch(Abi, Abi),
FunctionArgMismatch(Ty<'tcx>, Ty<'tcx>),
@ -564,6 +568,8 @@ impl fmt::Debug for UnsupportedOpInfo<'tcx> {
write!(f, "{}", msg),
ReadOfStaticInConst =>
write!(f, "tried to read from a static during const evaluation"),
UninhabitedValue =>
write!(f, "tried to use an uninhabited value"),
}
}
}