diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2018-08-23 16:34:38 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2018-09-30 17:27:06 +0200 |
| commit | bd3c7812cbadf875ebcc79d65a1f65c29dea0c8c (patch) | |
| tree | 3dda20f43364bb563a0551efdb5459761dbc5b8e /src/librustc_codegen_llvm/debuginfo/mod.rs | |
| parent | f9bbb5f31df8232fb1e17a3408b62590c30112c7 (diff) | |
| download | rust-bd3c7812cbadf875ebcc79d65a1f65c29dea0c8c.tar.gz rust-bd3c7812cbadf875ebcc79d65a1f65c29dea0c8c.zip | |
use is_uninhabited in more places
Diffstat (limited to 'src/librustc_codegen_llvm/debuginfo/mod.rs')
| -rw-r--r-- | src/librustc_codegen_llvm/debuginfo/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/debuginfo/mod.rs b/src/librustc_codegen_llvm/debuginfo/mod.rs index 99919a940b4..7b0c413e857 100644 --- a/src/librustc_codegen_llvm/debuginfo/mod.rs +++ b/src/librustc_codegen_llvm/debuginfo/mod.rs @@ -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; } |
