diff options
| author | khyperia <github@khyperia.com> | 2020-10-17 13:28:58 +0200 |
|---|---|---|
| committer | khyperia <github@khyperia.com> | 2020-10-17 13:28:58 +0200 |
| commit | 3d484481c7413a97117f059e10a53dff29d74498 (patch) | |
| tree | 4089603257e6bf695a0a419c29e49f5c0a908d73 | |
| parent | 4cb7ef0f94b46b5bab5ee5d6fbbb691f7879f13b (diff) | |
| download | rust-3d484481c7413a97117f059e10a53dff29d74498.tar.gz rust-3d484481c7413a97117f059e10a53dff29d74498.zip | |
Make set_span take mut self
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/builder.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/traits/builder.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_llvm/src/builder.rs b/compiler/rustc_codegen_llvm/src/builder.rs index 174620ea2fa..491191d058c 100644 --- a/compiler/rustc_codegen_llvm/src/builder.rs +++ b/compiler/rustc_codegen_llvm/src/builder.rs @@ -139,7 +139,7 @@ impl BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> { unsafe { llvm::LLVMGetInsertBlock(self.llbuilder) } } - fn set_span(&self, _span: Span) {} + fn set_span(&mut self, _span: Span) {} fn position_at_end(&mut self, llbb: &'ll BasicBlock) { unsafe { diff --git a/compiler/rustc_codegen_ssa/src/traits/builder.rs b/compiler/rustc_codegen_ssa/src/traits/builder.rs index 0b8289a8dd9..d5bd2780388 100644 --- a/compiler/rustc_codegen_ssa/src/traits/builder.rs +++ b/compiler/rustc_codegen_ssa/src/traits/builder.rs @@ -45,7 +45,7 @@ pub trait BuilderMethods<'a, 'tcx>: fn build_sibling_block(&self, name: &str) -> Self; fn cx(&self) -> &Self::CodegenCx; fn llbb(&self) -> Self::BasicBlock; - fn set_span(&self, span: Span); + fn set_span(&mut self, span: Span); fn position_at_end(&mut self, llbb: Self::BasicBlock); fn ret_void(&mut self); |
