Skip to content

Commit c74e124

Browse files
authored
ci: Pin nightly rust version (#1124)
Nightly rust tests are failing, seemingly due to [rust-lang/rust#125474](rust-lang/rust#125474). This PR fixes the toolchain to the last working nightly until the problem is resolved. CI fail: https://github.com/CQCL/hugr/actions/runs/9281876942/job/25538729650#step:6:856
1 parent 3298a6a commit c74e124

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/ci-rs.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ jobs:
122122
strategy:
123123
fail-fast: true
124124
matrix:
125-
rust: ['1.75', beta, nightly]
125+
# Pinned nightly version until this gets resolved:
126+
# https://github.com/rust-lang/rust/issues/125474
127+
rust: ['1.75', beta, 'nightly-2024-05-22']
126128
name: tests (Rust ${{ matrix.rust }})
127129
steps:
128130
- uses: actions/checkout@v4
@@ -176,8 +178,13 @@ jobs:
176178
steps:
177179
- uses: actions/checkout@v4
178180
- uses: mozilla-actions/[email protected]
179-
- uses: dtolnay/rust-toolchain@nightly
181+
- uses: dtolnay/rust-toolchain@master
180182
with:
183+
# Nightly is required to count doctests coverage
184+
#
185+
# Pinned nightly version until this gets resolved
186+
# https://github.com/rust-lang/rust/issues/125474
187+
toolchain: 'nightly-2024-05-22'
181188
components: llvm-tools-preview
182189
- name: Install cargo-llvm-cov
183190
uses: taiki-e/install-action@cargo-llvm-cov

hugr-core/src/hugr/hugrmut.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ pub trait HugrMut: HugrMutInternals {
222222
}
223223

224224
/// Records the result of inserting a Hugr or view
225-
/// via [HugrMut::insert_hugr] or [HugrMut::insert_from_view]
225+
/// via [HugrMut::insert_hugr] or [HugrMut::insert_from_view].
226226
pub struct InsertionResult {
227227
/// The node, after insertion, that was the root of the inserted Hugr.
228228
///

0 commit comments

Comments
 (0)