mirror of
https://github.com/aphrody-labs/rusty_v8.git
synced 2026-10-13 20:15:52 +00:00
chore: use Rust 1.91.0 (#1919)
This commit is contained in:
1 parent
50067f04b9
commit
909980fcab
11 files changed
+21
-21
No files matched your search
@@ -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
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
[toolchain]
|
||||
channel = "1.89.0"
|
||||
channel = "1.91.0"
|
||||
components = ["rustfmt", "clippy"]
|
||||
targets = [
|
||||
"x86_64-apple-darwin",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user