diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-11-10 03:53:31 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-10 17:23:31 +0530 |
commit | bc33a4b2e06dd5518e0d1bbf7b538d0b00df214d (patch) | |
tree | e139e95178892521ecb5807959e324422ed29045 /ops/tests | |
parent | 92764c0decb370b0f8a78770314ceda7228d315f (diff) |
refactor(ops): Rewrite fast call optimizer and codegen (#16514)
Diffstat (limited to 'ops/tests')
-rw-r--r-- | ops/tests/compile_fail/unsupported.stderr | 55 |
1 files changed, 23 insertions, 32 deletions
diff --git a/ops/tests/compile_fail/unsupported.stderr b/ops/tests/compile_fail/unsupported.stderr index 9a1d1462d..5dccead46 100644 --- a/ops/tests/compile_fail/unsupported.stderr +++ b/ops/tests/compile_fail/unsupported.stderr @@ -1,39 +1,30 @@ -error: custom attribute panicked - --> tests/compile_fail/unsupported.rs:5:1 - | -5 | #[op(fast)] - | ^^^^^^^^^^^ - | - = help: message: op cannot be a fast api. enforced by #[op(fast)] - -error: custom attribute panicked - --> tests/compile_fail/unsupported.rs:10:1 - | -10 | #[op(fast)] - | ^^^^^^^^^^^ - | - = help: message: op cannot be a fast api. enforced by #[op(fast)] - -error: custom attribute panicked - --> tests/compile_fail/unsupported.rs:17:1 - | -17 | #[op(fast)] - | ^^^^^^^^^^^ - | - = help: message: op cannot be a fast api. enforced by #[op(fast)] - -error: custom attribute panicked +error: fast async calls are not supported --> tests/compile_fail/unsupported.rs:22:1 | 22 | #[op(fast)] | ^^^^^^^^^^^ | - = help: message: async op cannot be a fast api. enforced by #[op(fast)] + = note: this error originates in the attribute macro `op` (in Nightly builds, run with -Z macro-backtrace for more info) -warning: unused import: `deno_core::v8::fast_api::FastApiCallbackOptions` - --> tests/compile_fail/unsupported.rs:15:5 - | -15 | use deno_core::v8::fast_api::FastApiCallbackOptions; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +error[E0277]: the trait bound `&mut FastApiCallbackOptions<'_>: Deserialize<'_>` is not satisfied + --> tests/compile_fail/unsupported.rs:17:1 | - = note: `#[warn(unused_imports)]` on by default +17 | #[op(fast)] + | ^^^^^^^^^^^ the trait `Deserialize<'_>` is not implemented for `&mut FastApiCallbackOptions<'_>` + | + = help: the following other types implement trait `Deserialize<'de>`: + &'a Path + &'a [u8] + &'a str + () + (T0, T1) + (T0, T1, T2) + (T0, T1, T2, T3) + (T0, T1, T2, T3, T4) + and 143 others +note: required by a bound in `from_v8` + --> $WORKSPACE/serde_v8/de.rs + | + | T: Deserialize<'de>, + | ^^^^^^^^^^^^^^^^ required by this bound in `from_v8` + = note: this error originates in the attribute macro `op` (in Nightly builds, run with -Z macro-backtrace for more info) |