summaryrefslogtreecommitdiff
path: root/gnu/packages/rust.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/rust.scm')
-rw-r--r--gnu/packages/rust.scm34
1 files changed, 27 insertions, 7 deletions
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 2fb43f13cbf..d6e87956980 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -557,13 +557,33 @@ safety and thread safety guarantees.")
557 rust-1.57 "1.58.1" "1iq7kj16qfpkx8gvw50d8rf7glbm6s0pj2y1qkrz7mi56vfsyfd8")) 557 rust-1.57 "1.58.1" "1iq7kj16qfpkx8gvw50d8rf7glbm6s0pj2y1qkrz7mi56vfsyfd8"))
558 558
559(define rust-1.59 559(define rust-1.59
560 (rust-bootstrapped-package 560 (let ((base-rust
561 ;; Verified that it *doesn't* build with 1.57. e.g.: 561 (rust-bootstrapped-package
562 ;; * error: `doc(primitive)` should never have been stable 562 ;; Verified that it *doesn't* build with 1.57. e.g.:
563 ;; * error[E0522]: definition of an unknown language item: 563 ;; * error: `doc(primitive)` should never have been stable
564 ;; `generator_return` 564 ;; * error[E0522]: definition of an unknown language item:
565 ;; * error[E0206]: the trait `Copy` may not be implemented for this type 565 ;; `generator_return`
566 rust-1.58 "1.59.0" "1yc5bwcbmbwyvpfq7zvra78l0r8y3lbv60kbr62fzz2vx2pfxj57")) 566 ;; * error[E0206]: the trait `Copy` may not be implemented for this type
567 rust-1.58 "1.59.0" "1yc5bwcbmbwyvpfq7zvra78l0r8y3lbv60kbr62fzz2vx2pfxj57")))
568 (package
569 (inherit base-rust)
570 (arguments
571 (if (target-riscv64?)
572 (substitute-keyword-arguments (package-arguments base-rust)
573 ((#:phases phases)
574 `(modify-phases ,phases
575 (add-after 'unpack 'revert-riscv-pause-instruction
576 (lambda _
577 ;; This fails with:
578 ;; error: unknown directive, referring to '.insn'.
579 ;; This is due to building with llvm < 14.
580 ;; https://github.com/rust-lang/stdarch/issues/1291
581 ;; Partial roll-back from this commit:
582 ;; https://github.com/rust-lang/stdarch/pull/1271
583 (substitute*
584 "library/stdarch/crates/core_arch/src/riscv_shared/mod.rs"
585 (("\\.insn i 0x0F, 0, x0, x0, 0x010") ".word 0x0100000F")))))))
586 (package-arguments base-rust))))))
567 587
568(define rust-1.60 588(define rust-1.60
569 (rust-bootstrapped-package 589 (rust-bootstrapped-package