Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update nightly to nightly-2024-09-15 #734

Merged
merged 2 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
env:
RUSTFLAGS: -Dwarnings
RUST_BACKTRACE: 1
nightly: nightly-2022-11-12
nightly: nightly-2024-09-15

defaults:
run:
Expand Down Expand Up @@ -136,6 +136,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update $nightly && rustup default $nightly
- name: Miri
run: ci/miri.sh

Expand All @@ -160,6 +162,7 @@ jobs:
- minrust
- cross
- tsan
- miri
- loom
runs-on: ubuntu-latest
steps:
Expand Down
3 changes: 1 addition & 2 deletions ci/miri.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/bin/bash
set -e

rustup toolchain install nightly --component miri
rustup override set nightly
rustup component add miri
cargo miri setup

export MIRIFLAGS="-Zmiri-strict-provenance"
Expand Down
2 changes: 2 additions & 0 deletions src/bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ impl Bytes {
Bytes::from_static(EMPTY)
}

/// Creates a new empty `Bytes`.
#[cfg(all(loom, test))]
pub fn new() -> Self {
const EMPTY: &[u8] = &[];
Expand Down Expand Up @@ -172,6 +173,7 @@ impl Bytes {
}
}

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