mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-24 00:00:14 +02:00
ci: update nightly to nightly-2024-09-15 (#734)
This commit is contained in:
@@ -13,7 +13,7 @@ on:
|
|||||||
env:
|
env:
|
||||||
RUSTFLAGS: -Dwarnings
|
RUSTFLAGS: -Dwarnings
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
nightly: nightly-2022-11-12
|
nightly: nightly-2024-09-15
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
@@ -136,6 +136,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- name: Install Rust
|
||||||
|
run: rustup update $nightly && rustup default $nightly
|
||||||
- name: Miri
|
- name: Miri
|
||||||
run: ci/miri.sh
|
run: ci/miri.sh
|
||||||
|
|
||||||
@@ -160,6 +162,7 @@ jobs:
|
|||||||
- minrust
|
- minrust
|
||||||
- cross
|
- cross
|
||||||
- tsan
|
- tsan
|
||||||
|
- miri
|
||||||
- loom
|
- loom
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
+1
-2
@@ -1,8 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
rustup toolchain install nightly --component miri
|
rustup component add miri
|
||||||
rustup override set nightly
|
|
||||||
cargo miri setup
|
cargo miri setup
|
||||||
|
|
||||||
export MIRIFLAGS="-Zmiri-strict-provenance"
|
export MIRIFLAGS="-Zmiri-strict-provenance"
|
||||||
|
|||||||
@@ -142,6 +142,7 @@ impl Bytes {
|
|||||||
Bytes::from_static(EMPTY)
|
Bytes::from_static(EMPTY)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Creates a new empty `Bytes`.
|
||||||
#[cfg(all(loom, test))]
|
#[cfg(all(loom, test))]
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
const EMPTY: &[u8] = &[];
|
const EMPTY: &[u8] = &[];
|
||||||
@@ -172,6 +173,7 @@ impl Bytes {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Creates a new `Bytes` from a static slice.
|
||||||
#[cfg(all(loom, test))]
|
#[cfg(all(loom, test))]
|
||||||
pub fn from_static(bytes: &'static [u8]) -> Self {
|
pub fn from_static(bytes: &'static [u8]) -> Self {
|
||||||
Bytes {
|
Bytes {
|
||||||
|
|||||||
Reference in New Issue
Block a user