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 1313env :
1414 RUSTFLAGS : -Dwarnings
1515 RUST_BACKTRACE : 1
16- nightly : nightly-2022-11-12
16+ nightly : nightly-2024-09-15
1717
1818defaults :
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 :
Original file line number Diff line number Diff line change 11#! /bin/bash
22set -e
33
4- rustup toolchain install nightly --component miri
5- rustup override set nightly
4+ rustup component add miri
65cargo miri setup
76
87export MIRIFLAGS=" -Zmiri-strict-provenance"
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments