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

Compilation error in async-fs on Windows #209

Closed
mjaakkol opened this issue Sep 16, 2020 · 5 comments
Closed

Compilation error in async-fs on Windows #209

mjaakkol opened this issue Sep 16, 2020 · 5 comments

Comments

@mjaakkol
Copy link

I develop my stuff on Windows and MacOS and with the latest update Windows side started to cause troubles when pulling in async-fs. I was wondering if anybody else has seen this.

error[E0053]: method security_qos_flags has an incompatible type for trait
--> C:\Users\XXXX.cargo\registry\src\github.com-1ecc6299db9ec823\async-fs-1.3.0\src\lib.rs:1465:5
|
1465 | fn security_qos_flags(&mut self, flags: u32) -> &mut Self {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct std::fs::OpenOptions, found struct OpenOptions
|
= note: expected fn pointer fn(&mut OpenOptions, _) -> &mut std::fs::OpenOptions
found fn pointer fn(&mut OpenOptions, _) -> &mut OpenOptions

@ghost
Copy link

ghost commented Sep 16, 2020

This is really strange. What is your rustc --version?

@mjaakkol
Copy link
Author

mjaakkol commented Sep 16, 2020 via email

@ghost ghost closed this as completed Sep 16, 2020
@Geobert
Copy link

Geobert commented Sep 16, 2020

I've encounter this as well, which minimum version of rust do we need?

@ghost
Copy link

ghost commented Sep 16, 2020

@Geobert 1.46.0

@ghost
Copy link

ghost commented Sep 16, 2020

The PR that fixed this in the standard library: rust-lang/rust#74074

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

No branches or pull requests

2 participants