Skip to content

Commit 4f4354f

Browse files
committed
Remove some unstable items from core
1 parent 8d12bad commit 4f4354f

File tree

16 files changed

+45
-43
lines changed

16 files changed

+45
-43
lines changed

.github/actions/android/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ runs:
2525
- name: Setup
2626
shell: bash
2727
run: |
28-
rustup toolchain install nightly-2025-04-15-x86_64-unknown-linux-gnu
29-
rustup component add rust-src --toolchain nightly-2025-04-15-x86_64-unknown-linux-gnu
28+
rustup toolchain install nightly-2025-10-31-x86_64-unknown-linux-gnu
29+
rustup component add rust-src --toolchain nightly-2025-10-31-x86_64-unknown-linux-gnu
3030
rustup target add \
3131
aarch64-linux-android \
3232
armv7-linux-androideabi \

.github/actions/linux/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ runs:
77
- name: Install Rust Nightly
88
uses: dtolnay/rust-toolchain@stable
99
with:
10-
toolchain: nightly-2025-04-15
10+
toolchain: nightly-2025-10-31
1111
components: rust-src
1212
targets: aarch64-unknown-linux-gnu,x86_64-unknown-linux-gnu,i686-unknown-linux-gnu,riscv64gc-unknown-linux-gnu,armv7-unknown-linux-gnueabihf
1313

.github/actions/macos/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ runs:
77
- name: Install Rust Nightly
88
uses: dtolnay/rust-toolchain@stable
99
with:
10-
toolchain: nightly-2025-04-15
10+
toolchain: nightly-2025-10-31
1111
components: rust-src
1212
targets: x86_64-apple-darwin,aarch64-apple-darwin
1313

.github/actions/wasm/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ runs:
77
- name: Install Rust Nightly
88
uses: dtolnay/rust-toolchain@stable
99
with:
10-
toolchain: nightly-2025-04-15
10+
toolchain: nightly-2025-10-31
1111
components: rust-src
1212

1313
- name: Setup emsdk

.github/actions/windows/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ runs:
77
- name: Install Rust Nightly
88
uses: dtolnay/rust-toolchain@stable
99
with:
10-
toolchain: nightly-2025-04-15
10+
toolchain: nightly-2025-10-31
1111
components: rust-src
1212
targets: x86_64-pc-windows-msvc,aarch64-pc-windows-msvc,i686-pc-windows-msvc
1313

.github/actions/xcframework/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ runs:
77
- name: Setup
88
shell: bash
99
run: |
10-
rustup toolchain install nightly-2025-04-15-aarch64-apple-darwin
11-
rustup component add rust-src --toolchain nightly-2025-04-15-aarch64-apple-darwin
10+
rustup toolchain install nightly-2025-10-31-aarch64-apple-darwin
11+
rustup component add rust-src --toolchain nightly-2025-10-31-aarch64-apple-darwin
1212
rustup target add \
1313
x86_64-apple-darwin \
1414
aarch64-apple-darwin \

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
- name: Install Rust Nightly
9595
uses: dtolnay/rust-toolchain@stable
9696
with:
97-
toolchain: nightly-2025-04-15
97+
toolchain: nightly-2025-10-31
9898
components: rust-src,rustfmt,clippy
9999

100100
- name: Check formatting

crates/core/src/bson/de.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use core::assert_matches::debug_assert_matches;
2-
31
use serde::{
42
de::{
53
self, DeserializeSeed, EnumAccess, IntoDeserializer, MapAccess, SeqAccess, VariantAccess,
@@ -250,7 +248,10 @@ impl<'de> SeqAccess<'de> for Deserializer<'de> {
250248
}
251249

252250
// Skip name
253-
debug_assert_matches!(self.position, DeserializerPosition::BeforeName { .. });
251+
assert!(matches!(
252+
self.position,
253+
DeserializerPosition::BeforeName { .. }
254+
));
254255
self.prepare_to_read(true)?;
255256

256257
// And deserialize value!

crates/core/src/bson/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ pub fn from_bytes<'de, T: Deserialize<'de>>(bytes: &'de [u8]) -> Result<T, BsonE
1616
#[cfg(test)]
1717
mod test {
1818
use alloc::{vec, vec::Vec};
19-
use core::assert_matches::assert_matches;
2019

2120
use crate::sync::line::{SyncLine, TokenExpiresIn};
2221

@@ -53,7 +52,7 @@ mod test {
5352
let bson = b"\x1b\x00\x00\x00\x10token_expires_in\x00<\x00\x00\x00\x00";
5453

5554
let expected: SyncLine = from_bytes(bson.as_slice()).expect("should deserialize");
56-
assert_matches!(expected, SyncLine::KeepAlive(TokenExpiresIn(60)));
55+
assert!(matches!(expected, SyncLine::KeepAlive(TokenExpiresIn(60))))
5756
}
5857

5958
#[test]

crates/core/src/fix_data.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,11 @@ pub fn register(db: *mut sqlite::sqlite3) -> Result<(), ResultCode> {
151151

152152
#[cfg(test)]
153153
mod test {
154-
use core::assert_matches::assert_matches;
155154

156155
use super::remove_duplicate_key_encoding;
157156

158157
fn assert_unaffected(source: &str) {
159-
assert_matches!(remove_duplicate_key_encoding(source), None);
158+
assert!(matches!(remove_duplicate_key_encoding(source), None));
160159
}
161160

162161
#[test]

0 commit comments

Comments
 (0)