diff options
author | Matt Mastracci <matthew@mastracci.com> | 2023-07-01 18:00:14 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-02 00:00:14 +0000 |
commit | e746b6d80654ba4e4e26370fe6e4f784ce841d92 (patch) | |
tree | 153ffad92a96126b9ab8e906dcdabf7648755931 /ops/tests | |
parent | b9c0e7cd550ab14fa7da7e33ed87cbeeeb9785a0 (diff) |
refactor(core): Extract deno_core (#19658)
`deno_core` is moving out! You'll find it at
https://github.com/denoland/deno_core/ once this PR lands.
Diffstat (limited to 'ops/tests')
-rw-r--r-- | ops/tests/compile_fail/mem_slices.rs | 24 | ||||
-rw-r--r-- | ops/tests/compile_fail/mem_slices.stderr | 15 |
2 files changed, 0 insertions, 39 deletions
diff --git a/ops/tests/compile_fail/mem_slices.rs b/ops/tests/compile_fail/mem_slices.rs deleted file mode 100644 index da74ac577..000000000 --- a/ops/tests/compile_fail/mem_slices.rs +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. - -use deno_ops::op; - -#[op] -fn sync_test(slice: &mut [u32]) { - // -} - -#[op] -async fn async_test(slice: &[u8]) { - // Memory slices are not allowed in async ops. -} - -#[op] -fn async_test2(slice: &mut [u8]) -> impl Future<Output = ()> { - // Memory slices are not allowed in async ops, even when not implemented as an - // async function. - async {} -} - -fn main() { - // pass -} diff --git a/ops/tests/compile_fail/mem_slices.stderr b/ops/tests/compile_fail/mem_slices.stderr deleted file mode 100644 index c45acfcf9..000000000 --- a/ops/tests/compile_fail/mem_slices.stderr +++ /dev/null @@ -1,15 +0,0 @@ -error: custom attribute panicked - --> tests/compile_fail/mem_slices.rs:10:1 - | -10 | #[op] - | ^^^^^ - | - = help: message: Memory slices are not allowed in async ops - -error: custom attribute panicked - --> tests/compile_fail/mem_slices.rs:15:1 - | -15 | #[op] - | ^^^^^ - | - = help: message: Memory slices are not allowed in async ops |