Skip to content

Commit

Permalink
rustc: reapply re-erased-regions-are-local patch
Browse files Browse the repository at this point in the history
The patch is not in 1.68, and was mistakenly removed
  • Loading branch information
figsoda committed Apr 11, 2023
1 parent f7e5db2 commit 805c009
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions pkgs/development/compilers/rust/1_68.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
, makeRustPlatform
, llvmPackages_11
, llvmPackages_15, llvm_15
, fetchpatch
} @ args:

import ./default.nix {
Expand Down Expand Up @@ -57,7 +58,16 @@ import ./default.nix {

selectRustPackage = pkgs: pkgs.rust_1_68;

rustcPatches = [ ];
rustcPatches = [
# Fixes ICE.
# https://github.com/rust-lang/rust/pull/107688
(fetchpatch {
name = "re-erased-regions-are-local.patch";
url = "https://github.com/rust-lang/rust/commit/9d110847ab7f6aef56a8cd20cb6cea4fbcc51cd9.patch";
excludes = [ "*tests/*" ];
hash = "sha256-EZH5K1BEOOfi97xZr1xEHFP4jjvJ1+xqtRMvxBoL8pU=";
})
];
}

(builtins.removeAttrs args [ "pkgsBuildHost" "llvmPackages_11" "llvmPackages_15" "llvm_15"])
(builtins.removeAttrs args [ "fetchpatch" "pkgsBuildHost" "llvmPackages_11" "llvmPackages_15" "llvm_15"])

0 comments on commit 805c009

Please sign in to comment.