diff options
| author | Jubilee <workingjubilee@gmail.com> | 2024-10-28 10:18:50 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-28 10:18:50 -0700 |
| commit | 259ddf9b50df634962320fcd3cca2c7395cf7b0d (patch) | |
| tree | 2432f2e597f06d612c1caef1220e567d9ab7cfbe /compiler/rustc_codegen_llvm/src/debuginfo/mod.rs | |
| parent | d6be363400ce8041808cd1aee6e77db49079cd25 (diff) | |
| parent | 641ce068ae6f26eee5b455cf0110ba2ed370d384 (diff) | |
| download | rust-259ddf9b50df634962320fcd3cca2c7395cf7b0d.tar.gz rust-259ddf9b50df634962320fcd3cca2c7395cf7b0d.zip | |
Rollup merge of #132255 - workingjubilee:layout-is-🏚️, r=compiler-errors
Add `LayoutS::is_uninhabited` and use it Use accessors for the things that accessors are good at: reducing everyone's need to be nosy and peek at the internals of every data structure.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/debuginfo/mod.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/debuginfo/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs b/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs index 3de4ca77e7d..5b32a542750 100644 --- a/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs +++ b/compiler/rustc_codegen_llvm/src/debuginfo/mod.rs @@ -364,7 +364,7 @@ impl<'ll, 'tcx> DebugInfoCodegenMethods<'tcx> for CodegenCx<'ll, 'tcx> { let mut flags = DIFlags::FlagPrototyped; - if fn_abi.ret.layout.abi.is_uninhabited() { + if fn_abi.ret.layout.is_uninhabited() { flags |= DIFlags::FlagNoReturn; } |
