guix_mirror_bot pushed a commit to branch rust-team
in repository guix.
commit fb0e68fd56281f95fafcfd076d11e2e7e239b981
Author: Efraim Flashner <[email protected]>
AuthorDate: Tue Mar 31 16:35:24 2026 +0300
gnu: rust: Update to 1.94.
* gnu/packages/rust.scm (rust): Update to 1.94.
[arguments]: Add a phase to patch more files for the test suite. Adjust
the 'dont-reference-previous-cargo-version phase for changes in the
source.
Change-Id: I965e8b3b4046322820be632d01926331fc9afc38
---
gnu/packages/rust.scm | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 26c34deed5d..b33cbf9f3de 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -2056,7 +2056,7 @@ ge13ca993e8ccb9ba9847cc330696e02839f328f7/jemalloc"))
;;; Here we take the latest included Rust, make it public, and re-enable tests
;;; and extra components such as rustfmt.
(define-public rust
- (let ((base-rust rust-1.93))
+ (let ((base-rust rust-1.94))
(package
(inherit base-rust)
(properties (append
@@ -2077,6 +2077,17 @@ ge13ca993e8ccb9ba9847cc330696e02839f328f7/jemalloc"))
(cons '(srfi srfi-26) modules))
((#:phases phases)
`(modify-phases ,phases
+ (add-after 'unpack 'patch-shebangs-in-tests
+ (lambda* (#:key inputs #:allow-other-keys)
+ (with-directory-excursion
+ "src/tools/rust-analyzer/crates/parser/test_data"
+ (substitute* '("lexer/ok/shebang_frontmatter.rast"
+ "parser/inline/ok/frontmatter.rast")
+ (("/usr/bin/env cargo")
+ (search-input-file inputs "bin/cargo")))
+ (substitute* "lexer/ok/single_line_comments.rast"
+ (("/usr/bin/env bash")
+ (search-input-file inputs "bin/bash"))))))
(add-after 'unpack 'disable-tests-requiring-git
(lambda _
(substitute*
"src/tools/cargo/tests/testsuite/publish_lockfile.rs"
@@ -2297,7 +2308,7 @@ ge13ca993e8ccb9ba9847cc330696e02839f328f7/jemalloc"))
(with-directory-excursion
(string-append (assoc-ref outputs "rust-src")
"/lib/rustlib/src/rust/src/tools/")
- (substitute* (find-files "." "\\.rs$")
+ (substitute* (find-files "." "\\.(rs|rast)$")
(("#!.*/bin/cargo")
(string-append "#!" (assoc-ref outputs "cargo")
"/bin/cargo"))))))