From 55595ca1b74e07eb2365d5aec3861600e2266470 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Mon, 5 Dec 2022 08:10:22 -0800 Subject: fix(ops): disallow auto-borrowing OpState across potential await point (#16952) Fixes https://github.com/denoland/deno/issues/16934 Example compiler error: ``` error: mutable opstate is not supported in async ops --> core/ops_builtin.rs:122:1 | 122 | #[op] | ^^^^^ | = note: this error originates in the attribute macro `op` (in Nightly builds, run with -Z macro-backtrace for more info) ``` --- ops/optimizer_tests/issue16934.expected | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ops/optimizer_tests/issue16934.expected (limited to 'ops/optimizer_tests/issue16934.expected') diff --git a/ops/optimizer_tests/issue16934.expected b/ops/optimizer_tests/issue16934.expected new file mode 100644 index 000000000..6b75ff5bf --- /dev/null +++ b/ops/optimizer_tests/issue16934.expected @@ -0,0 +1,11 @@ +=== Optimizer Dump === +returns_result: false +has_ref_opstate: false +has_rc_opstate: false +has_fast_callback_option: false +needs_fast_callback_option: false +fast_result: None +fast_parameters: [] +transforms: {} +is_async: false +fast_compatible: false -- cgit v1.2.3