Skip to content

size_hint can be malformed from rustc_middle::mir::traversal::Postorder #137919

@scottmcm

Description

@scottmcm

Spotted with extra checking from 804cf26

size_hint (4, Some(2)) is malformed from iterator rustc_middle::mir::traversal::Postorder collecting into alloc::vec::Vec<rustc_middle::mir::BasicBlock>

query stack during panic:
#0 [analysis] running analysis passes on this crate
end of query stack
note: Clippy version: clippy 0.1.87 (7a632ba 2025-03-03)

Metadata

Metadata

Assignees

Labels

A-MIRArea: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.htmlT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions