diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-07-22 19:06:32 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-22 19:06:32 +0530 |
commit | 4db650ddd57b85475d71c0b9fc84d37becab9d6a (patch) | |
tree | e32602ab92d4c117dbbd72ea9c7436964466187d /ops/tests | |
parent | 03dc3b8972f460e40d0b75fc3207cae9fe4f60da (diff) |
Revert "feat(ops): V8 Fast Calls (#15122)" (#15276)
This reverts commit 03dc3b8972f460e40d0b75fc3207cae9fe4f60da.
Diffstat (limited to 'ops/tests')
-rw-r--r-- | ops/tests/compile_fail/unsupported.rs | 27 | ||||
-rw-r--r-- | ops/tests/compile_fail/unsupported.stderr | 31 | ||||
-rw-r--r-- | ops/tests/mod.rs | 5 |
3 files changed, 0 insertions, 63 deletions
diff --git a/ops/tests/compile_fail/unsupported.rs b/ops/tests/compile_fail/unsupported.rs deleted file mode 100644 index 1c4d6407a..000000000 --- a/ops/tests/compile_fail/unsupported.rs +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright 2019-2020 the Deno authors. All rights reserved. MIT license. - -use deno_ops::op; - -#[op(fast)] -fn op_result_return(a: i32, b: i32) -> Result<(), ()> { - a + b -} - -#[op(fast)] -fn op_u8_arg(a: u8, b: u8) { - // -} - -#[op(fast)] -fn op_u16_arg(a: u16, b: u16) { - // -} - -#[op(fast)] -async fn op_async_fn(a: i32, b: i32) -> i32 { - a + b -} - -fn main() { - // pass -} diff --git a/ops/tests/compile_fail/unsupported.stderr b/ops/tests/compile_fail/unsupported.stderr deleted file mode 100644 index 68c9f7f16..000000000 --- a/ops/tests/compile_fail/unsupported.stderr +++ /dev/null @@ -1,31 +0,0 @@ -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:15:1 - | -15 | #[op(fast)] - | ^^^^^^^^^^^ - | - = help: message: op cannot be a fast api. enforced by #[op(fast)] - -error: custom attribute panicked - --> tests/compile_fail/unsupported.rs:20:1 - | -20 | #[op(fast)] - | ^^^^^^^^^^^ - | - = help: message: async op cannot be a fast api. enforced by #[op(fast)] diff --git a/ops/tests/mod.rs b/ops/tests/mod.rs deleted file mode 100644 index 522647f51..000000000 --- a/ops/tests/mod.rs +++ /dev/null @@ -1,5 +0,0 @@ -#[test] -fn op_macro() { - let t = trybuild::TestCases::new(); - t.compile_fail("tests/compile_fail/*.rs"); -} |