← Rule catalog

rust-doctor · Async

await-holding-refcell-ref

Detect RefCell borrows retained across an await point

Severity
warning
Confidence
medium
Analyzer
syn-ast
Default policy
Opt-in

Tags

  • async
  • heuristic

Framework requirements

  • tokio *
  • async-std *
  • smol *

Limitations

  • Syntactic analysis does not have rustc name resolution or inferred type information.

Remediation

End the RefCell borrow before awaiting, then borrow again after resumption.

Fix capability: guidance