1
Fork 0

rustc_codegen_llvm: deny(unused_lifetimes).

This commit is contained in:
Eduard-Mihai Burtescu 2019-06-12 15:59:10 +03:00
parent fff08cb043
commit 87b6b86468
6 changed files with 11 additions and 13 deletions

View file

@ -1228,9 +1228,7 @@ impl Builder<'a, 'll, 'tcx> {
ret.expect("LLVM does not have support for catchret")
}
fn check_store<'b>(&mut self,
val: &'ll Value,
ptr: &'ll Value) -> &'ll Value {
fn check_store(&mut self, val: &'ll Value, ptr: &'ll Value) -> &'ll Value {
let dest_ptr_ty = self.cx.val_ty(ptr);
let stored_ty = self.cx.val_ty(val);
let stored_ptr_ty = self.cx.type_ptr_to(stored_ty);