Skip to content

Cleanup: NLL mutable stack building pattern #249

@nikomatsakis

Description

@nikomatsakis

Follow-up cleanup from PR #246:

nll.rs has a clone-heavy pattern for building an immutable stack:

let stack = { let mut s = stack.clone(); s.push(this_entry.clone()); s }

This could be made more readable, possibly with a helper or a different data structure.

See: #246 (comment)

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

Status

Needs triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions