Skip to content

no field st_mtimensec on type rustix::fs::Stat #2004

Description

@0323pin

Hi,

This has started to happen recently,

   Compiling gix-index v0.40.0
error[E0609]: no field `st_mtimensec` on type `rustix::fs::Stat`
  --> /tmp/shells/starship/work/vendor/gix-index-0.40.0/src/fs.rs:65:38
   |
65 |             let nanoseconds = self.0.st_mtimensec;
   |                                      ^^^^^^^^^^^^ unknown field
   |
help: a field with a similar name exists
   |
65 |             let nanoseconds = self.0.st_mtime_nsec;
   |                                      ~~~~~~~~~~~~~

error[E0609]: no field `st_ctimensec` on type `rustix::fs::Stat`
  --> /tmp/shells/starship/work/vendor/gix-index-0.40.0/src/fs.rs:94:38
   |
94 |             let nanoseconds = self.0.st_ctimensec;
   |                                      ^^^^^^^^^^^^ unknown field
   |
help: a field with a similar name exists
   |
94 |             let nanoseconds = self.0.st_ctime_nsec;
   |                                      ~~~~~~~~~~~~~

For more information about this error, try `rustc --explain E0609`.
error: could not compile `gix-index` (lib) due to 2 previous errors
*** Error code 101

See for example, http://www.ki.nu/pkgsrc/reports/current/NetBSD-9.0/20250505.0626/starship-1.23.0/build.log or, http://www.ki.nu/pkgsrc/reports/current/NetBSD-9.0/20250505.0626/mise-2025.5.0/build.log

This seems to be related to #1170

But, I don't know exactly what has changed recently.

Any help would be appreciated, thank you.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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