c2rust icon indicating copy to clipboard operation
c2rust copied to clipboard

`*_PADDING` `const` is private error with `--reorganize-definitions`

Open kvinwang opened this issue 5 years ago • 0 comments

I am trying to transpile a kernel module with --reorganize-definitions.

got some errors like:

error[E0603]: constant `flowi6_PADDING` is private
     --> src/media_proxy.rs:22333:34
      |
22333 |                    flowi6_Inner, flowi6_PADDING, flowi4, flowi4_Inner,

which defined here:

    #[allow(dead_code, non_upper_case_globals)]
    #[c2rust::src_loc = "108:8"]
    const flowi6_PADDING: usize =
        ::core::mem::size_of::<flowi6>() -
            ::core::mem::size_of::<flowi6_Inner>();

c2rust version: 067ae31ad9932ba89a8466cc604ecae4f3a0c422

kvinwang avatar Feb 18 '20 12:02 kvinwang