← Rule catalog

rust-doctor · Async

spawn-in-drop

Detect Tokio task spawning from Drop implementations

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

Tags

  • async
  • heuristic

Framework requirements

  • tokio *

Limitations

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

Remediation

Expose an explicit async shutdown method and keep Drop synchronous.

Fix capability: guidance