From 909980fcabb14390fdaca2a798f6e8bd4c761220 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 4 Mar 2026 09:38:54 +0100 Subject: [PATCH] chore: use Rust 1.91.0 (#1919) --- .github/workflows/ci.yml | 4 ++-- rust-toolchain.toml | 2 +- tests/compile_fail/boxed_local.stderr | 6 +++--- tests/compile_fail/drop_scope_before_local.stderr | 4 ++-- tests/compile_fail/handle_scope_escape_lifetime.stderr | 6 +++--- tests/compile_fail/handle_scope_lifetime_1.stderr | 2 +- tests/compile_fail/handle_scope_lifetime_2.stderr | 2 +- tests/compile_fail/handle_scope_lifetime_3.stderr | 2 +- tests/compile_fail/try_catch_exception_lifetime.stderr | 6 +++--- tests/compile_fail/try_catch_message_lifetime.stderr | 6 +++--- tests/test_api.rs | 2 +- 11 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c0630a0..de79aaa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -143,7 +143,7 @@ jobs: uses: cargo-bins/cargo-binstall@main - name: Install nextest - run: cargo binstall cargo-nextest@0.9.126 --secure --locked --no-confirm + run: cargo binstall cargo-nextest --secure --locked --no-confirm env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -293,7 +293,7 @@ jobs: uses: cargo-bins/cargo-binstall@main - name: Install nextest - run: cargo binstall cargo-nextest@0.9.126 --secure --locked + run: cargo binstall cargo-nextest --secure --locked - name: Install python uses: actions/setup-python@v5 diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 3b8c059..0924897 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,5 +1,5 @@ [toolchain] -channel = "1.89.0" +channel = "1.91.0" components = ["rustfmt", "clippy"] targets = [ "x86_64-apple-darwin", diff --git a/tests/compile_fail/boxed_local.stderr b/tests/compile_fail/boxed_local.stderr index a4ce372..12d6d1c 100644 --- a/tests/compile_fail/boxed_local.stderr +++ b/tests/compile_fail/boxed_local.stderr @@ -1,7 +1,7 @@ error[E0597]: `scope` does not live long enough --> tests/compile_fail/boxed_local.rs:12:44 | -9 | let _boxed_local = { + 9 | let _boxed_local = { | ------------ borrow later stored here 10 | let scope = pin!(v8::HandleScope::new(&mut scope1)); 11 | let mut scope = scope.init(); @@ -15,7 +15,7 @@ error[E0597]: `scope` does not live long enough error[E0716]: temporary value dropped while borrowed --> tests/compile_fail/boxed_local.rs:12:18 | -9 | let _boxed_local = { + 9 | let _boxed_local = { | ------------ borrow later stored here ... 12 | let scope3 = pin!(v8::HandleScope::new(&mut scope)); @@ -30,7 +30,7 @@ error[E0716]: temporary value dropped while borrowed error[E0716]: temporary value dropped while borrowed --> tests/compile_fail/boxed_local.rs:10:17 | -9 | let _boxed_local = { + 9 | let _boxed_local = { | ------------ borrow later stored here 10 | let scope = pin!(v8::HandleScope::new(&mut scope1)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use diff --git a/tests/compile_fail/drop_scope_before_local.stderr b/tests/compile_fail/drop_scope_before_local.stderr index df7d317..67af14a 100644 --- a/tests/compile_fail/drop_scope_before_local.stderr +++ b/tests/compile_fail/drop_scope_before_local.stderr @@ -1,9 +1,9 @@ error[E0505]: cannot move out of `scope_pinned` because it is borrowed --> tests/compile_fail/drop_scope_before_local.rs:10:8 | -6 | let mut scope_pinned = pin!(v8::HandleScope::new(&mut isolate)); + 6 | let mut scope_pinned = pin!(v8::HandleScope::new(&mut isolate)); | ---------------- binding `scope_pinned` declared here -7 | let mut scope = scope_pinned.as_mut().init(); + 7 | let mut scope = scope_pinned.as_mut().init(); | ------------ borrow of `scope_pinned` occurs here ... 10 | drop(scope_pinned); diff --git a/tests/compile_fail/handle_scope_escape_lifetime.stderr b/tests/compile_fail/handle_scope_escape_lifetime.stderr index dfbc8a6..b150c87 100644 --- a/tests/compile_fail/handle_scope_escape_lifetime.stderr +++ b/tests/compile_fail/handle_scope_escape_lifetime.stderr @@ -1,7 +1,7 @@ error[E0597]: `scope` does not live long enough --> tests/compile_fail/handle_scope_escape_lifetime.rs:12:44 | -9 | let _local = { + 9 | let _local = { | ------ borrow later stored here 10 | let scope = pin!(v8::HandleScope::new(&mut scope1)); 11 | let mut scope = scope.init(); @@ -15,7 +15,7 @@ error[E0597]: `scope` does not live long enough error[E0716]: temporary value dropped while borrowed --> tests/compile_fail/handle_scope_escape_lifetime.rs:12:18 | -9 | let _local = { + 9 | let _local = { | ------ borrow later stored here ... 12 | let scope3 = pin!(v8::HandleScope::new(&mut scope)); @@ -30,7 +30,7 @@ error[E0716]: temporary value dropped while borrowed error[E0716]: temporary value dropped while borrowed --> tests/compile_fail/handle_scope_escape_lifetime.rs:10:17 | -9 | let _local = { + 9 | let _local = { | ------ borrow later stored here 10 | let scope = pin!(v8::HandleScope::new(&mut scope1)); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use diff --git a/tests/compile_fail/handle_scope_lifetime_1.stderr b/tests/compile_fail/handle_scope_lifetime_1.stderr index e1c582d..84752e8 100644 --- a/tests/compile_fail/handle_scope_lifetime_1.stderr +++ b/tests/compile_fail/handle_scope_lifetime_1.stderr @@ -1,7 +1,7 @@ error[E0499]: cannot borrow `scope1` as mutable more than once at a time --> tests/compile_fail/handle_scope_lifetime_1.rs:11:33 | -9 | let mut context_scope = v8::ContextScope::new(&mut scope1, context); + 9 | let mut context_scope = v8::ContextScope::new(&mut scope1, context); | ----------- first mutable borrow occurs here 10 | let mut _scope2 = v8::EscapableHandleScope::new(&mut context_scope); 11 | let _local = v8::Integer::new(&mut scope1, 123); diff --git a/tests/compile_fail/handle_scope_lifetime_2.stderr b/tests/compile_fail/handle_scope_lifetime_2.stderr index 54cd63a..5a8fe0e 100644 --- a/tests/compile_fail/handle_scope_lifetime_2.stderr +++ b/tests/compile_fail/handle_scope_lifetime_2.stderr @@ -1,7 +1,7 @@ error[E0499]: cannot borrow `scope1` as mutable more than once at a time --> tests/compile_fail/handle_scope_lifetime_2.rs:12:34 | -9 | let mut context_scope = v8::ContextScope::new(&mut scope1, context); + 9 | let mut context_scope = v8::ContextScope::new(&mut scope1, context); | ----------- first mutable borrow occurs here ... 12 | let _local1 = v8::Integer::new(&mut scope1, 123); diff --git a/tests/compile_fail/handle_scope_lifetime_3.stderr b/tests/compile_fail/handle_scope_lifetime_3.stderr index e60994c..2e52d55 100644 --- a/tests/compile_fail/handle_scope_lifetime_3.stderr +++ b/tests/compile_fail/handle_scope_lifetime_3.stderr @@ -1,7 +1,7 @@ error[E0499]: cannot borrow `scope1` as mutable more than once at a time --> tests/compile_fail/handle_scope_lifetime_3.rs:13:22 | -9 | let mut context_scope = v8::ContextScope::new(&mut scope1, context); + 9 | let mut context_scope = v8::ContextScope::new(&mut scope1, context); | ----------- first mutable borrow occurs here ... 13 | v8::Integer::new(&mut scope1, 123) diff --git a/tests/compile_fail/try_catch_exception_lifetime.stderr b/tests/compile_fail/try_catch_exception_lifetime.stderr index ca21836..3793ff8 100644 --- a/tests/compile_fail/try_catch_exception_lifetime.stderr +++ b/tests/compile_fail/try_catch_exception_lifetime.stderr @@ -1,7 +1,7 @@ error[E0716]: temporary value dropped while borrowed --> tests/compile_fail/try_catch_exception_lifetime.rs:11:5 | -9 | let _exception = { + 9 | let _exception = { | ---------- borrow later stored here 10 | v8::scope!(scope3, &mut scope); 11 | v8::scope!(scope4, scope3); @@ -16,7 +16,7 @@ error[E0716]: temporary value dropped while borrowed error[E0716]: temporary value dropped while borrowed --> tests/compile_fail/try_catch_exception_lifetime.rs:10:5 | -9 | let _exception = { + 9 | let _exception = { | ---------- borrow later stored here 10 | v8::scope!(scope3, &mut scope); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use @@ -30,7 +30,7 @@ error[E0716]: temporary value dropped while borrowed error[E0716]: temporary value dropped while borrowed --> tests/compile_fail/try_catch_exception_lifetime.rs:10:5 | -9 | let _exception = { + 9 | let _exception = { | ---------- borrow later stored here 10 | v8::scope!(scope3, &mut scope); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use diff --git a/tests/compile_fail/try_catch_message_lifetime.stderr b/tests/compile_fail/try_catch_message_lifetime.stderr index 454f3bc..9f5b182 100644 --- a/tests/compile_fail/try_catch_message_lifetime.stderr +++ b/tests/compile_fail/try_catch_message_lifetime.stderr @@ -1,7 +1,7 @@ error[E0716]: temporary value dropped while borrowed --> tests/compile_fail/try_catch_message_lifetime.rs:11:5 | -9 | let _message = { + 9 | let _message = { | -------- borrow later stored here 10 | v8::scope!(scope3, &mut scope); 11 | v8::scope!(scope4, scope3); @@ -16,7 +16,7 @@ error[E0716]: temporary value dropped while borrowed error[E0716]: temporary value dropped while borrowed --> tests/compile_fail/try_catch_message_lifetime.rs:10:5 | -9 | let _message = { + 9 | let _message = { | -------- borrow later stored here 10 | v8::scope!(scope3, &mut scope); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use @@ -30,7 +30,7 @@ error[E0716]: temporary value dropped while borrowed error[E0716]: temporary value dropped while borrowed --> tests/compile_fail/try_catch_message_lifetime.rs:10:5 | -9 | let _message = { + 9 | let _message = { | -------- borrow later stored here 10 | v8::scope!(scope3, &mut scope); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use diff --git a/tests/test_api.rs b/tests/test_api.rs index 6110c40..429319e 100644 --- a/tests/test_api.rs +++ b/tests/test_api.rs @@ -9202,7 +9202,7 @@ fn run_with_rust_allocator() { unsafe extern "C" fn free(count: &AtomicUsize, data: *mut c_void, n: usize) { count.fetch_sub(n, Ordering::SeqCst); let _ = unsafe { - Box::from_raw(std::slice::from_raw_parts_mut(data as *mut u8, n)) + Box::from_raw(std::ptr::slice_from_raw_parts_mut(data as *mut u8, n)) }; } unsafe extern "C" fn drop(count: *const AtomicUsize) {