+
Skip to content

Renaming of FormatItem is a breaking change #675

@arkeet

Description

@arkeet

I noticed sqlx-sqlite (0.7.4) does not build with 0.3.35 (but built with 0.3.34):

error[E0432]: unresolved import `time::format_description::FormatItem`
   --> .../sqlx-sqlite-0.7.4/src/types/time.rs:192:72
    |
192 |     use time::format_description::{modifier, Component::*, FormatItem, FormatItem::*};
    |                                                                        ^^^^^^^^^^ `FormatItem` is a type alias, not a module

So evidently replacing an enum with a type alias is a breaking change. One possible fix is to replace the type alias with a re-export i.e. pub use BorrowedFormatItem as FormatItem;, but unfortunately deprecating re-exports doesn't work: rust-lang/rust#30827

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug in current code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载