Skip to content

Commit 78410ba

Browse files
committed
Pass &mut self to all debuginfo builder methods
1 parent 3ec1773 commit 78410ba

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/debuginfo.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub(super) const UNKNOWN_COLUMN_NUMBER: u32 = 0;
1717

1818
impl<'a, 'gcc, 'tcx> DebugInfoBuilderMethods<'tcx> for Builder<'a, 'gcc, 'tcx> {
1919
fn dbg_scope_fn(
20-
&self,
20+
&mut self,
2121
_instance: Instance<'tcx>,
2222
_fn_abi: &FnAbi<'tcx, Ty<'tcx>>,
2323
_maybe_definition_llfn: Option<Function<'gcc>>,
@@ -26,30 +26,30 @@ impl<'a, 'gcc, 'tcx> DebugInfoBuilderMethods<'tcx> for Builder<'a, 'gcc, 'tcx> {
2626
}
2727

2828
fn dbg_create_lexical_block(
29-
&self,
29+
&mut self,
3030
_pos: BytePos,
3131
_parent_scope: Self::DIScope,
3232
) -> Self::DIScope {
3333
}
3434

3535
fn dbg_location_clone_with_discriminator(
36-
&self,
36+
&mut self,
3737
loc: Self::DILocation,
3838
_discriminator: u32,
3939
) -> Option<Self::DILocation> {
4040
Some(loc)
4141
}
4242

4343
fn extend_scope_to_file(
44-
&self,
44+
&mut self,
4545
_scope_metadata: Self::DIScope,
4646
_file: &SourceFile,
4747
) -> Self::DIScope {
4848
// FIXME(antoyo): implement.
4949
}
5050

5151
fn dbg_loc(
52-
&self,
52+
&mut self,
5353
_scope: Self::DIScope,
5454
_inlined_at: Option<Self::DILocation>,
5555
span: Span,
@@ -67,7 +67,7 @@ impl<'a, 'gcc, 'tcx> DebugInfoBuilderMethods<'tcx> for Builder<'a, 'gcc, 'tcx> {
6767
}
6868

6969
fn create_dbg_var(
70-
&self,
70+
&mut self,
7171
_variable_name: Symbol,
7272
_variable_type: Ty<'tcx>,
7373
_scope_metadata: Self::DIScope,

0 commit comments

Comments
 (0)