use is_uninhabited in more places
This commit is contained in:
parent
af101fdc33
commit
ce6e6f9333
6 changed files with 12 additions and 12 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue