rust-doctor · Correctness
mem-forget-resource
Detect resource guards passed to mem::forget
- Severity
- warning
- Confidence
- high
- Analyzer
- syn-ast
- Default policy
- Opt-in
Tags
Framework requirements
No framework requirement.
Limitations
- Syntactic analysis does not have rustc name resolution or inferred type information.
Remediation
Release the guard explicitly or transfer ownership through a documented resource API.
Fix capability: guidance