about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorkhyperia <github@khyperia.com>2020-10-17 13:28:58 +0200
committerkhyperia <github@khyperia.com>2020-10-17 13:28:58 +0200
commit3d484481c7413a97117f059e10a53dff29d74498 (patch)
tree4089603257e6bf695a0a419c29e49f5c0a908d73 /compiler/rustc_codegen_llvm/src/builder.rs
parent4cb7ef0f94b46b5bab5ee5d6fbbb691f7879f13b (diff)
downloadrust-3d484481c7413a97117f059e10a53dff29d74498.tar.gz
rust-3d484481c7413a97117f059e10a53dff29d74498.zip
Make set_span take mut self
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/builder.rs2
1 files changed, 1 insertions, 1 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 {