Skip to content

Cannot impl std::os::windows::fs::MetadataExt in stable rust #118795

Open
@Berrysoft

Description

@Berrysoft

The 3 methods added in #63010 makes MetadataExt cannot be implemented in stable rust.

error[E0046]: not all trait items implemented, missing: `volume_serial_number`, `number_of_links`, `file_index`
   --> compio-fs\src\metadata\windows.rs:149:1
    |
149 | impl MetadataExt for Metadata {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `volume_serial_number`, `number_of_links`, `file_index` in implementation
    |
    = help: implement the missing item: `fn volume_serial_number(&self) -> Option<u32> { todo!() }`
    = help: implement the missing item: `fn number_of_links(&self) -> Option<u32> { todo!() }`
    = help: implement the missing item: `fn file_index(&self) -> Option<u64> { todo!() }`

The trait should provide default impls for them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ioArea: `std::io`, `std::fs`, `std::net` and `std::path`C-bugCategory: This is a bug.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions