use is_uninhabited in more places
This commit is contained in:
committed by
Ralf Jung
parent
f9bbb5f31d
commit
bd3c7812cb
@@ -279,7 +279,7 @@ pub fn create_function_debug_context(
|
||||
}
|
||||
None => {}
|
||||
};
|
||||
if cx.layout_of(sig.output()).abi == ty::layout::Abi::Uninhabited {
|
||||
if cx.layout_of(sig.output()).abi.is_uninhabited() {
|
||||
flags = flags | DIFlags::FlagNoReturn;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user