File tree Expand file tree Collapse file tree 9 files changed +18
-18
lines changed
Expand file tree Collapse file tree 9 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 11[toolchain ]
2- channel = " 1.89 .0"
2+ channel = " 1.91 .0"
33components = [" rustfmt" , " clippy" ]
44targets = [
55 " x86_64-apple-darwin" ,
Original file line number Diff line number Diff line change 11error[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
6610 | let scope = pin!(v8::HandleScope::new(&mut scope1));
7711 | let mut scope = scope.init();
@@ -15,7 +15,7 @@ error[E0597]: `scope` does not live long enough
1515error[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...
212112 | let scope3 = pin!(v8::HandleScope::new(&mut scope));
@@ -30,7 +30,7 @@ error[E0716]: temporary value dropped while borrowed
3030error[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
353510 | let scope = pin!(v8::HandleScope::new(&mut scope1));
3636 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use
Original file line number Diff line number Diff line change 11error[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...
9910 | drop(scope_pinned);
Original file line number Diff line number Diff line change 11error[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
6610 | let scope = pin!(v8::HandleScope::new(&mut scope1));
7711 | let mut scope = scope.init();
@@ -15,7 +15,7 @@ error[E0597]: `scope` does not live long enough
1515error[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...
212112 | let scope3 = pin!(v8::HandleScope::new(&mut scope));
@@ -30,7 +30,7 @@ error[E0716]: temporary value dropped while borrowed
3030error[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
353510 | let scope = pin!(v8::HandleScope::new(&mut scope1));
3636 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use
Original file line number Diff line number Diff line change 11error[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
6610 | let mut _scope2 = v8::EscapableHandleScope::new(&mut context_scope);
7711 | let _local = v8::Integer::new(&mut scope1, 123);
Original file line number Diff line number Diff line change 11error[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...
7712 | let _local1 = v8::Integer::new(&mut scope1, 123);
Original file line number Diff line number Diff line change 11error[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...
7713 | v8::Integer::new(&mut scope1, 123)
Original file line number Diff line number Diff line change 11error[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
6610 | v8::scope!(scope3, &mut scope);
7711 | v8::scope!(scope4, scope3);
@@ -16,7 +16,7 @@ error[E0716]: temporary value dropped while borrowed
1616error[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
212110 | 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
3030error[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
353510 | v8::scope!(scope3, &mut scope);
3636 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use
Original file line number Diff line number Diff line change 11error[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
6610 | v8::scope!(scope3, &mut scope);
7711 | v8::scope!(scope4, scope3);
@@ -16,7 +16,7 @@ error[E0716]: temporary value dropped while borrowed
1616error[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
212110 | 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
3030error[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
353510 | v8::scope!(scope3, &mut scope);
3636 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use
You can’t perform that action at this time.
0 commit comments