From 2d68950e7e8ca9f1fdb43c620d0818e145d3104b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 19 Nov 2020 19:44:06 +0100 Subject: [PATCH] build: upgrade Rust to 1.48.0 (#535) --- .github/workflows/ci.yml | 2 +- .../compile_fail/handle_scope_escape_to_nowhere.stderr | 10 +++++----- tests/compile_fail/handle_scope_lifetime_1.stderr | 2 +- tests/compile_fail/handle_scope_lifetime_3.stderr | 2 +- tests/compile_fail/object_without_context_scope.stderr | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f0061b00..e60e9465 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,7 +69,7 @@ jobs: uses: hecrj/setup-rust-action@v1 with: components: clippy, rustfmt - rust-version: 1.47.0 + rust-version: 1.48.0 - name: Install python uses: actions/setup-python@v1 diff --git a/tests/compile_fail/handle_scope_escape_to_nowhere.stderr b/tests/compile_fail/handle_scope_escape_to_nowhere.stderr index b4b64f36..b1d0f767 100644 --- a/tests/compile_fail/handle_scope_escape_to_nowhere.stderr +++ b/tests/compile_fail/handle_scope_escape_to_nowhere.stderr @@ -1,13 +1,13 @@ -error[E0277]: the trait bound `rusty_v8::OwnedIsolate: rusty_v8::scope::param::NewEscapableHandleScope<'_, '_>` is not satisfied +error[E0277]: the trait bound `OwnedIsolate: rusty_v8::scope::param::NewEscapableHandleScope<'_, '_>` is not satisfied --> $DIR/handle_scope_escape_to_nowhere.rs:6:50 | 6 | let mut _scope = v8::EscapableHandleScope::new(&mut isolate); - | ^^^^^^^^^^^^ the trait `rusty_v8::scope::param::NewEscapableHandleScope<'_, '_>` is not implemented for `rusty_v8::OwnedIsolate` + | ^^^^^^^^^^^^ the trait `rusty_v8::scope::param::NewEscapableHandleScope<'_, '_>` is not implemented for `OwnedIsolate` | - = note: required by `rusty_v8::EscapableHandleScope::<'s, 'e>::new` + = note: required by `EscapableHandleScope::<'s, 'e>::new` -error[E0277]: the trait bound `rusty_v8::OwnedIsolate: rusty_v8::scope::param::NewEscapableHandleScope<'_, '_>` is not satisfied +error[E0277]: the trait bound `OwnedIsolate: rusty_v8::scope::param::NewEscapableHandleScope<'_, '_>` is not satisfied --> $DIR/handle_scope_escape_to_nowhere.rs:6:20 | 6 | let mut _scope = v8::EscapableHandleScope::new(&mut isolate); - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `rusty_v8::scope::param::NewEscapableHandleScope<'_, '_>` is not implemented for `rusty_v8::OwnedIsolate` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `rusty_v8::scope::param::NewEscapableHandleScope<'_, '_>` is not implemented for `OwnedIsolate` diff --git a/tests/compile_fail/handle_scope_lifetime_1.stderr b/tests/compile_fail/handle_scope_lifetime_1.stderr index 28d9b793..42e47ea3 100644 --- a/tests/compile_fail/handle_scope_lifetime_1.stderr +++ b/tests/compile_fail/handle_scope_lifetime_1.stderr @@ -6,4 +6,4 @@ error[E0499]: cannot borrow `scope1` as mutable more than once at a time 8 | let _local = v8::Integer::new(&mut scope1, 123); | ^^^^^^^^^^^ second mutable borrow occurs here 9 | } - | - first borrow might be used here, when `_scope2` is dropped and runs the `Drop` code for type `rusty_v8::EscapableHandleScope` + | - first borrow might be used here, when `_scope2` is dropped and runs the `Drop` code for type `EscapableHandleScope` diff --git a/tests/compile_fail/handle_scope_lifetime_3.stderr b/tests/compile_fail/handle_scope_lifetime_3.stderr index 79eeeae5..4a8e5428 100644 --- a/tests/compile_fail/handle_scope_lifetime_3.stderr +++ b/tests/compile_fail/handle_scope_lifetime_3.stderr @@ -6,4 +6,4 @@ error[E0499]: cannot borrow `scope1` as mutable more than once at a time 10 | v8::Integer::new(&mut scope1, 123) | ^^^^^^^^^^^ second mutable borrow occurs here 11 | }; - | - first borrow might be used here, when `_scope2` is dropped and runs the `Drop` code for type `rusty_v8::EscapableHandleScope` + | - first borrow might be used here, when `_scope2` is dropped and runs the `Drop` code for type `EscapableHandleScope` diff --git a/tests/compile_fail/object_without_context_scope.stderr b/tests/compile_fail/object_without_context_scope.stderr index 022e2bfd..c176120c 100644 --- a/tests/compile_fail/object_without_context_scope.stderr +++ b/tests/compile_fail/object_without_context_scope.stderr @@ -4,5 +4,5 @@ error[E0308]: mismatched types 7 | let _object = v8::Object::new(&mut scope); | ^^^^^^^^^^ expected struct `rusty_v8::Context`, found `()` | - = note: expected mutable reference `&mut rusty_v8::HandleScope<'_>` - found mutable reference `&mut rusty_v8::HandleScope<'_, ()>` + = note: expected mutable reference `&mut HandleScope<'_>` + found mutable reference `&mut HandleScope<'_, ()>`