← Rule catalog

rust-doctor · Performance

unbounded-collect

Detect input-like iterators collected without an explicit bound

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

Tags

  • heuristic
  • performance

Framework requirements

No framework requirement.

Limitations

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

Remediation

Apply a validated take limit or stream the input without collecting it all.

Fix capability: guidance