CTFE: tweak abort-on-uninhabited message
This commit is contained in:
parent
80cc2ecf10
commit
2443f642e3
@ -414,7 +414,13 @@ pub fn emulate_intrinsic(
|
||||
if layout.abi.is_uninhabited() {
|
||||
// The run-time intrinsic panics just to get a good backtrace; here we abort
|
||||
// since there is no problem showing a backtrace even for aborts.
|
||||
M::abort(self, format!("attempted to instantiate uninhabited type `{}`", ty))?;
|
||||
M::abort(
|
||||
self,
|
||||
format!(
|
||||
"aborted execution: attempted to instantiate uninhabited type `{}`",
|
||||
ty
|
||||
),
|
||||
)?;
|
||||
}
|
||||
}
|
||||
sym::simd_insert => {
|
||||
|
Loading…
Reference in New Issue
Block a user