File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 13
13
env :
14
14
RUSTFLAGS : -Dwarnings
15
15
RUST_BACKTRACE : 1
16
- nightly : nightly-2022-11-12
16
+ nightly : nightly-2024-09-15
17
17
18
18
defaults :
19
19
run :
@@ -136,6 +136,8 @@ jobs:
136
136
runs-on : ubuntu-latest
137
137
steps :
138
138
- uses : actions/checkout@v4
139
+ - name : Install Rust
140
+ run : rustup update $nightly && rustup default $nightly
139
141
- name : Miri
140
142
run : ci/miri.sh
141
143
@@ -160,6 +162,7 @@ jobs:
160
162
- minrust
161
163
- cross
162
164
- tsan
165
+ - miri
163
166
- loom
164
167
runs-on : ubuntu-latest
165
168
steps :
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
4
- rustup toolchain install nightly --component miri
5
- rustup override set nightly
4
+ rustup component add miri
6
5
cargo miri setup
7
6
8
7
export MIRIFLAGS=" -Zmiri-strict-provenance"
Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ impl Bytes {
142
142
Bytes :: from_static ( EMPTY )
143
143
}
144
144
145
+ /// Creates a new empty `Bytes`.
145
146
#[ cfg( all( loom, test) ) ]
146
147
pub fn new ( ) -> Self {
147
148
const EMPTY : & [ u8 ] = & [ ] ;
@@ -172,6 +173,7 @@ impl Bytes {
172
173
}
173
174
}
174
175
176
+ /// Creates a new `Bytes` from a static slice.
175
177
#[ cfg( all( loom, test) ) ]
176
178
pub fn from_static ( bytes : & ' static [ u8 ] ) -> Self {
177
179
Bytes {
You can’t perform that action at this time.
0 commit comments