Skip to content

Copy trait is derived when a struct contains __IncompleteArrayField #458

Closed
@leeopop

Description

@leeopop

I have this error with generated code.

6948 |     pub field: __IncompleteArrayField<rte_acl_field>,
     |     ------------------------------------------------ this field does not implement `Copy`

While the generated rte_acl_field is

#[repr(C)]
#[derive(Debug, Copy)]
pub struct rte_acl_field {
    pub value: rte_acl_field_types,
    pub mask_range: rte_acl_field_types,
}

I think a00e8b0
affects the result.

I check that 7d995d7 did not cause problems.
You may refer https://github.com/ANLAB-KAIST/rust-dpdk this repository to reproduce my result or put this usage scenario into test cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions