Skip to content

Commit ac46ebd

Browse files
authored
ci: update nightly to nightly-2024-09-15 (#734)
1 parent 79fb853 commit ac46ebd

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
env:
1414
RUSTFLAGS: -Dwarnings
1515
RUST_BACKTRACE: 1
16-
nightly: nightly-2022-11-12
16+
nightly: nightly-2024-09-15
1717

1818
defaults:
1919
run:
@@ -136,6 +136,8 @@ jobs:
136136
runs-on: ubuntu-latest
137137
steps:
138138
- uses: actions/checkout@v4
139+
- name: Install Rust
140+
run: rustup update $nightly && rustup default $nightly
139141
- name: Miri
140142
run: ci/miri.sh
141143

@@ -160,6 +162,7 @@ jobs:
160162
- minrust
161163
- cross
162164
- tsan
165+
- miri
163166
- loom
164167
runs-on: ubuntu-latest
165168
steps:

ci/miri.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#!/bin/bash
22
set -e
33

4-
rustup toolchain install nightly --component miri
5-
rustup override set nightly
4+
rustup component add miri
65
cargo miri setup
76

87
export MIRIFLAGS="-Zmiri-strict-provenance"

src/bytes.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ impl Bytes {
142142
Bytes::from_static(EMPTY)
143143
}
144144

145+
/// Creates a new empty `Bytes`.
145146
#[cfg(all(loom, test))]
146147
pub fn new() -> Self {
147148
const EMPTY: &[u8] = &[];
@@ -172,6 +173,7 @@ impl Bytes {
172173
}
173174
}
174175

176+
/// Creates a new `Bytes` from a static slice.
175177
#[cfg(all(loom, test))]
176178
pub fn from_static(bytes: &'static [u8]) -> Self {
177179
Bytes {

0 commit comments

Comments
 (0)