about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/debuginfo/utils.rs
diff options
context:
space:
mode:
authorLegionMammal978 <mattlloydhouse@gmail.com>2021-12-14 13:49:49 -0500
committerMatthew House <mattlloydhouse@gmail.com>2021-12-16 14:43:32 -0500
commit4937a55dfb19e804c3c974e5341b70dcd76192d4 (patch)
tree7c3ace1e7b7211357898ebccd166d199d5a45103 /compiler/rustc_codegen_llvm/src/debuginfo/utils.rs
parent1d01550f7ea9fce1cf625128fefc73b9da3c1508 (diff)
downloadrust-4937a55dfb19e804c3c974e5341b70dcd76192d4.tar.gz
rust-4937a55dfb19e804c3c974e5341b70dcd76192d4.zip
Remove `in_band_lifetimes` from `rustc_codegen_llvm`
See #91867 for more information.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/debuginfo/utils.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/debuginfo/utils.rs13
1 files changed, 9 insertions, 4 deletions
diff --git a/compiler/rustc_codegen_llvm/src/debuginfo/utils.rs b/compiler/rustc_codegen_llvm/src/debuginfo/utils.rs
index ee188e69be1..953b6765a48 100644
--- a/compiler/rustc_codegen_llvm/src/debuginfo/utils.rs
+++ b/compiler/rustc_codegen_llvm/src/debuginfo/utils.rs
@@ -23,21 +23,26 @@ pub fn is_node_local_to_unit(cx: &CodegenCx<'_, '_>, def_id: DefId) -> bool {
 }
 
 #[allow(non_snake_case)]
-pub fn create_DIArray(builder: &DIBuilder<'ll>, arr: &[Option<&'ll DIDescriptor>]) -> &'ll DIArray {
+pub fn create_DIArray<'ll>(
+    builder: &DIBuilder<'ll>,
+    arr: &[Option<&'ll DIDescriptor>],
+) -> &'ll DIArray {
     unsafe { llvm::LLVMRustDIBuilderGetOrCreateArray(builder, arr.as_ptr(), arr.len() as u32) }
 }
 
 #[inline]
-pub fn debug_context(cx: &'a CodegenCx<'ll, 'tcx>) -> &'a CrateDebugContext<'ll, 'tcx> {
+pub fn debug_context<'a, 'll, 'tcx>(
+    cx: &'a CodegenCx<'ll, 'tcx>,
+) -> &'a CrateDebugContext<'ll, 'tcx> {
     cx.dbg_cx.as_ref().unwrap()
 }
 
 #[inline]
 #[allow(non_snake_case)]
-pub fn DIB(cx: &'a CodegenCx<'ll, '_>) -> &'a DIBuilder<'ll> {
+pub fn DIB<'a, 'll>(cx: &'a CodegenCx<'ll, '_>) -> &'a DIBuilder<'ll> {
     cx.dbg_cx.as_ref().unwrap().builder
 }
 
-pub fn get_namespace_for_item(cx: &CodegenCx<'ll, '_>, def_id: DefId) -> &'ll DIScope {
+pub fn get_namespace_for_item<'ll>(cx: &CodegenCx<'ll, '_>, def_id: DefId) -> &'ll DIScope {
     item_namespace(cx, cx.tcx.parent(def_id).expect("get_namespace_for_item: missing parent?"))
 }