Skip to content

Commit 34d7ec0

Browse files
committed
chore: use Rust 1.91.0
1 parent dbdaa01 commit 34d7ec0

9 files changed

+18
-18
lines changed

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[toolchain]
2-
channel = "1.89.0"
2+
channel = "1.91.0"
33
components = ["rustfmt", "clippy"]
44
targets = [
55
"x86_64-apple-darwin",

tests/compile_fail/boxed_local.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error[E0597]: `scope` does not live long enough
22
--> tests/compile_fail/boxed_local.rs:12:44
33
|
4-
9 | let _boxed_local = {
4+
9 | let _boxed_local = {
55
| ------------ borrow later stored here
66
10 | let scope = pin!(v8::HandleScope::new(&mut scope1));
77
11 | let mut scope = scope.init();
@@ -15,7 +15,7 @@ error[E0597]: `scope` does not live long enough
1515
error[E0716]: temporary value dropped while borrowed
1616
--> tests/compile_fail/boxed_local.rs:12:18
1717
|
18-
9 | let _boxed_local = {
18+
9 | let _boxed_local = {
1919
| ------------ borrow later stored here
2020
...
2121
12 | let scope3 = pin!(v8::HandleScope::new(&mut scope));
@@ -30,7 +30,7 @@ error[E0716]: temporary value dropped while borrowed
3030
error[E0716]: temporary value dropped while borrowed
3131
--> tests/compile_fail/boxed_local.rs:10:17
3232
|
33-
9 | let _boxed_local = {
33+
9 | let _boxed_local = {
3434
| ------------ borrow later stored here
3535
10 | let scope = pin!(v8::HandleScope::new(&mut scope1));
3636
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use

tests/compile_fail/drop_scope_before_local.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
error[E0505]: cannot move out of `scope_pinned` because it is borrowed
22
--> tests/compile_fail/drop_scope_before_local.rs:10:8
33
|
4-
6 | let mut scope_pinned = pin!(v8::HandleScope::new(&mut isolate));
4+
6 | let mut scope_pinned = pin!(v8::HandleScope::new(&mut isolate));
55
| ---------------- binding `scope_pinned` declared here
6-
7 | let mut scope = scope_pinned.as_mut().init();
6+
7 | let mut scope = scope_pinned.as_mut().init();
77
| ------------ borrow of `scope_pinned` occurs here
88
...
99
10 | drop(scope_pinned);

tests/compile_fail/handle_scope_escape_lifetime.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error[E0597]: `scope` does not live long enough
22
--> tests/compile_fail/handle_scope_escape_lifetime.rs:12:44
33
|
4-
9 | let _local = {
4+
9 | let _local = {
55
| ------ borrow later stored here
66
10 | let scope = pin!(v8::HandleScope::new(&mut scope1));
77
11 | let mut scope = scope.init();
@@ -15,7 +15,7 @@ error[E0597]: `scope` does not live long enough
1515
error[E0716]: temporary value dropped while borrowed
1616
--> tests/compile_fail/handle_scope_escape_lifetime.rs:12:18
1717
|
18-
9 | let _local = {
18+
9 | let _local = {
1919
| ------ borrow later stored here
2020
...
2121
12 | let scope3 = pin!(v8::HandleScope::new(&mut scope));
@@ -30,7 +30,7 @@ error[E0716]: temporary value dropped while borrowed
3030
error[E0716]: temporary value dropped while borrowed
3131
--> tests/compile_fail/handle_scope_escape_lifetime.rs:10:17
3232
|
33-
9 | let _local = {
33+
9 | let _local = {
3434
| ------ borrow later stored here
3535
10 | let scope = pin!(v8::HandleScope::new(&mut scope1));
3636
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use

tests/compile_fail/handle_scope_lifetime_1.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error[E0499]: cannot borrow `scope1` as mutable more than once at a time
22
--> tests/compile_fail/handle_scope_lifetime_1.rs:11:33
33
|
4-
9 | let mut context_scope = v8::ContextScope::new(&mut scope1, context);
4+
9 | let mut context_scope = v8::ContextScope::new(&mut scope1, context);
55
| ----------- first mutable borrow occurs here
66
10 | let mut _scope2 = v8::EscapableHandleScope::new(&mut context_scope);
77
11 | let _local = v8::Integer::new(&mut scope1, 123);

tests/compile_fail/handle_scope_lifetime_2.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error[E0499]: cannot borrow `scope1` as mutable more than once at a time
22
--> tests/compile_fail/handle_scope_lifetime_2.rs:12:34
33
|
4-
9 | let mut context_scope = v8::ContextScope::new(&mut scope1, context);
4+
9 | let mut context_scope = v8::ContextScope::new(&mut scope1, context);
55
| ----------- first mutable borrow occurs here
66
...
77
12 | let _local1 = v8::Integer::new(&mut scope1, 123);

tests/compile_fail/handle_scope_lifetime_3.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error[E0499]: cannot borrow `scope1` as mutable more than once at a time
22
--> tests/compile_fail/handle_scope_lifetime_3.rs:13:22
33
|
4-
9 | let mut context_scope = v8::ContextScope::new(&mut scope1, context);
4+
9 | let mut context_scope = v8::ContextScope::new(&mut scope1, context);
55
| ----------- first mutable borrow occurs here
66
...
77
13 | v8::Integer::new(&mut scope1, 123)

tests/compile_fail/try_catch_exception_lifetime.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error[E0716]: temporary value dropped while borrowed
22
--> tests/compile_fail/try_catch_exception_lifetime.rs:11:5
33
|
4-
9 | let _exception = {
4+
9 | let _exception = {
55
| ---------- borrow later stored here
66
10 | v8::scope!(scope3, &mut scope);
77
11 | v8::scope!(scope4, scope3);
@@ -16,7 +16,7 @@ error[E0716]: temporary value dropped while borrowed
1616
error[E0716]: temporary value dropped while borrowed
1717
--> tests/compile_fail/try_catch_exception_lifetime.rs:10:5
1818
|
19-
9 | let _exception = {
19+
9 | let _exception = {
2020
| ---------- borrow later stored here
2121
10 | v8::scope!(scope3, &mut scope);
2222
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use
@@ -30,7 +30,7 @@ error[E0716]: temporary value dropped while borrowed
3030
error[E0716]: temporary value dropped while borrowed
3131
--> tests/compile_fail/try_catch_exception_lifetime.rs:10:5
3232
|
33-
9 | let _exception = {
33+
9 | let _exception = {
3434
| ---------- borrow later stored here
3535
10 | v8::scope!(scope3, &mut scope);
3636
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use

tests/compile_fail/try_catch_message_lifetime.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error[E0716]: temporary value dropped while borrowed
22
--> tests/compile_fail/try_catch_message_lifetime.rs:11:5
33
|
4-
9 | let _message = {
4+
9 | let _message = {
55
| -------- borrow later stored here
66
10 | v8::scope!(scope3, &mut scope);
77
11 | v8::scope!(scope4, scope3);
@@ -16,7 +16,7 @@ error[E0716]: temporary value dropped while borrowed
1616
error[E0716]: temporary value dropped while borrowed
1717
--> tests/compile_fail/try_catch_message_lifetime.rs:10:5
1818
|
19-
9 | let _message = {
19+
9 | let _message = {
2020
| -------- borrow later stored here
2121
10 | v8::scope!(scope3, &mut scope);
2222
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use
@@ -30,7 +30,7 @@ error[E0716]: temporary value dropped while borrowed
3030
error[E0716]: temporary value dropped while borrowed
3131
--> tests/compile_fail/try_catch_message_lifetime.rs:10:5
3232
|
33-
9 | let _message = {
33+
9 | let _message = {
3434
| -------- borrow later stored here
3535
10 | v8::scope!(scope3, &mut scope);
3636
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use

0 commit comments

Comments
 (0)