You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0502]: cannot borrow `*fast_api_callback_options.isolate` as mutable because it is also borrowed as immutable
--> repro/main.rs:3:1
|
3 | #[op2(fast)]
| ^^^^^^^^^^^-
| | |
| | immutable borrow might be used here, when `scope` is dropped and runs the `Drop` code for type `CallbackScope`
| mutable borrow occurs here
| immutable borrow occurs here
|
= note: this error originates in the attribute macro `op2` (in Nightly builds, run with -Z macro-backtrace for more info)
If you remove the fast attr, then op2 errors with This op is fast-compatible and should be marked as (fast).
The only way to get it to compile is with the nofast attr.
The text was updated successfully, but these errors were encountered:
nathanwhit
changed the title
Op that takes handle scope and a cppgc argument doesn't compile with #[op2(fast)]
Op that takes handle scope and a cppgc argument doesn't compile with #[op2(fast)]Sep 9, 2024
Repro
Fails to compile with
If you remove the fast attr, then
op2
errors withThis op is fast-compatible and should be marked as (fast)
.The only way to get it to compile is with the
nofast
attr.The text was updated successfully, but these errors were encountered: