]> git.lizzy.rs Git - rust.git/commitdiff
Make allocator_kind a query.
authorCamille GILLOT <gillot.camille@gmail.com>
Tue, 11 May 2021 20:05:54 +0000 (22:05 +0200)
committerCamille GILLOT <gillot.camille@gmail.com>
Sun, 30 May 2021 17:58:01 +0000 (19:58 +0200)
src/allocator.rs

index 357a9f2daf746e67e4f9bdea0e38a37637251e27..d39486c2f1002e485f849fb0c27fb3564c384e46 100644 (file)
@@ -19,7 +19,7 @@ pub(crate) fn codegen(
     });
     if any_dynamic_crate {
         false
-    } else if let Some(kind) = tcx.allocator_kind() {
+    } else if let Some(kind) = tcx.allocator_kind(()) {
         codegen_inner(module, unwind_context, kind);
         true
     } else {