Skip to content

Bug: missing drop impls for arrays #777

@Nadrieril

Description

@Nadrieril

With --add-drop-bounds, arrays still give a BuiltinOrAuto. We should give them a proper Drop impl instead, and be more explicit about what a BuiltinOrAuto for Drop means (the remaining ones should all be no-ops).

fn nested_from_fn<const K: usize>() -> [[usize; K]; K] {
    core::array::from_fn(|j| core::array::from_fn(|i| i+j))
}

cc @msprotz

Metadata

Metadata

Assignees

Labels

C-bugA bug in charon

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions