about summary refs log tree commit diff
path: root/src/allocator.rs
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2019-12-18 20:26:41 +0100
committerbjorn3 <bjorn3@users.noreply.github.com>2019-12-18 20:26:41 +0100
commit79ec8948d8b33c028647c6fe7df3426b8ff4987f (patch)
tree91bf62f3b69edfc4a768f6bd0a57a9f1cfef7e29 /src/allocator.rs
parentbfff2a50fdcf96a3a3f26a345833c083902460f1 (diff)
downloadrust-79ec8948d8b33c028647c6fe7df3426b8ff4987f.tar.gz
rust-79ec8948d8b33c028647c6fe7df3426b8ff4987f.zip
Fix some warnings
Diffstat (limited to 'src/allocator.rs')
-rw-r--r--src/allocator.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/allocator.rs b/src/allocator.rs
index df0f5d15434..cfcb091afb5 100644
--- a/src/allocator.rs
+++ b/src/allocator.rs
@@ -21,14 +21,14 @@ pub fn codegen(tcx: TyCtxt<'_>, module: &mut Module<impl Backend + 'static>) ->
     if any_dynamic_crate {
         false
     } else if let Some(kind) = tcx.allocator_kind() {
-        codegen_inner(tcx.sess, module, kind);
+        codegen_inner(module, kind);
         true
     } else {
         false
     }
 }
 
-pub fn codegen_inner(sess: &Session, module: &mut Module<impl Backend + 'static>, kind: AllocatorKind) {
+pub fn codegen_inner(module: &mut Module<impl Backend + 'static>, kind: AllocatorKind) {
     let usize_ty = module.target_config().pointer_type();
 
     for method in ALLOCATOR_METHODS {