Skip to content
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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[toolchain]
channel = "1.89.0"
channel = "1.91.0"
components = ["rustfmt", "clippy"]
targets = [
"x86_64-apple-darwin",
Expand Down
6 changes: 3 additions & 3 deletions tests/compile_fail/boxed_local.stderr
Original file line number Diff line number Diff line change
@@ -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();
Expand All @@ -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));
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/compile_fail/drop_scope_before_local.stderr
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
6 changes: 3 additions & 3 deletions tests/compile_fail/handle_scope_escape_lifetime.stderr
Original file line number Diff line number Diff line change
@@ -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();
Expand All @@ -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));
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/compile_fail/handle_scope_lifetime_1.stderr
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
2 changes: 1 addition & 1 deletion tests/compile_fail/handle_scope_lifetime_2.stderr
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
2 changes: 1 addition & 1 deletion tests/compile_fail/handle_scope_lifetime_3.stderr
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
6 changes: 3 additions & 3 deletions tests/compile_fail/try_catch_exception_lifetime.stderr
Original file line number Diff line number Diff line change
@@ -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);
Expand All @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions tests/compile_fail/try_catch_message_lifetime.stderr
Original file line number Diff line number Diff line change
@@ -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);
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/test_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down