Skip to content

Use of unstable library feature #9

@KeironO

Description

@KeironO

Hey there,

The following lines in lib.rs feature an unstable feature (copied).

let std_flag = tz.standard_flags.get(i).copied().unwrap_or_default() != 
let gmt_flag = tz.gmt_flags.get(i).copied().unwrap_or_default() != 0;

https://github.com/rust-datetime/zoneinfo-compiled/blob/master/src/lib.rs#L131-L132

Error thrown:

error[E0658]: use of unstable library feature 'copied' (see issue #57126)
   --> /home/keo7/.cargo/registry/src/github.com-1ecc6299db9ec823/zoneinfo_compiled-0.4.8/src/lib.rs:131:49
    |
131 |         let std_flag = tz.standard_flags.get(i).copied().unwrap_or_default() != 0;
    |                                                 ^^^^^^
    |

error[E0658]: use of unstable library feature 'copied' (see issue #57126)
   --> /home/keo7/.cargo/registry/src/github.com-1ecc6299db9ec823/zoneinfo_compiled-0.4.8/src/lib.rs:132:44
    |
132 |         let gmt_flag = tz.gmt_flags.get(i).copied().unwrap_or_default() != 0;
    |                                            ^^^^^^
    |

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0658`.
error: Could not compile `zoneinfo_compiled`.

Best wishes

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