Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rust target] std fails to compile on latest nightly (2024-03-20) #173

Closed
patataofcourse opened this issue Mar 21, 2024 · 2 comments
Closed

Comments

@patataofcourse
Copy link

Not sure if I should report this here or in the main Rust repo, please let me know how to go about this stuff in the future.

Upgraded from 2024-02-18, project immediately failed to compile.

error[E0308]: mismatched types
   --> /home/patat-mini/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/pal/unix/fs.rs:520:29
    |
520 |         Ok(SystemTime::from(self.stat.st_mtim))
    |            ---------------- ^^^^^^^^^^^^^^^^^ expected `SystemTime`, found `timespec`
    |            |
    |            arguments to this function are incorrect
    |
note: associated function defined here
   --> /home/patat-mini/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/convert/mod.rs:585:8
    |
585 |     fn from(value: T) -> Self;
    |        ^^^^

error[E0308]: mismatched types
   --> /home/patat-mini/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/pal/unix/fs.rs:548:29
    |
548 |         Ok(SystemTime::from(self.stat.st_atim))
    |            ---------------- ^^^^^^^^^^^^^^^^^ expected `SystemTime`, found `timespec`
    |            |
    |            arguments to this function are incorrect
    |
note: associated function defined here
   --> /home/patat-mini/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/convert/mod.rs:585:8
    |
585 |     fn from(value: T) -> Self;
    |        ^^^^
@ian-h-chamberlain
Copy link
Member

Hi, thanks for the report! In the future issues with compilation are probably best suited to be reported at https://github.com/rust-lang/rust but you can definitely tag us on those (unfortunately I don't think cross-org tagging works so e.g. like @rust3ds/active only works in this repo).

Seems related to rust-lang/rust#123057 so perhaps the fix for that will work for us as well, I'll leave a comment on that PR.

@ian-h-chamberlain
Copy link
Member

Believe this is fixed as rust-lang/rust#123057 is merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants