diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2018-12-02 18:25:42 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2019-03-29 17:17:12 +0100 |
| commit | 794ecd965ab39d767caebd79c0e32702e86a3ff1 (patch) | |
| tree | a840973f0d0a133221c926a592f51a6b18a2a078 /src/librustc_codegen_ssa/traits | |
| parent | ab8f1527e485d0de49139ca7b9d42c320991a53b (diff) | |
[WIP] Make some debug info methods take &mut FunctionDebugContext
declare_local still takes &FunctionDebugContext, because of borrowck errors
Diffstat (limited to 'src/librustc_codegen_ssa/traits')
| -rw-r--r-- | src/librustc_codegen_ssa/traits/debuginfo.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_codegen_ssa/traits/debuginfo.rs b/src/librustc_codegen_ssa/traits/debuginfo.rs index 135188e98c7..dcbb4e66cb3 100644 --- a/src/librustc_codegen_ssa/traits/debuginfo.rs +++ b/src/librustc_codegen_ssa/traits/debuginfo.rs @@ -28,7 +28,7 @@ pub trait DebugInfoMethods<'tcx>: BackendTypes { fn create_mir_scopes( &self, mir: &mir::Mir<'_>, - debug_context: &FunctionDebugContext<Self::DIScope>, + debug_context: &mut FunctionDebugContext<Self::DIScope>, ) -> IndexVec<mir::SourceScope, MirDebugScope<Self::DIScope>>; fn extend_scope_to_file( &self, @@ -53,7 +53,7 @@ pub trait DebugInfoBuilderMethods<'tcx>: BackendTypes { ); fn set_source_location( &mut self, - debug_context: &FunctionDebugContext<Self::DIScope>, + debug_context: &mut FunctionDebugContext<Self::DIScope>, scope: Option<Self::DIScope>, span: Span, ); |
