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

libc::O_SYNC is not re-exported #15581

Closed
carllerche opened this issue Jul 10, 2014 · 1 comment
Closed

libc::O_SYNC is not re-exported #15581

carllerche opened this issue Jul 10, 2014 · 1 comment

Comments

@carllerche
Copy link
Member

It does not seem that O_SYNC has been re-exported by libc

@steveklabnik
Copy link
Member

There are now pub consts for the variants of this.

$ git grep O_SYNC
src/etc/libc.c:#ifdef O_SYNC
src/etc/libc.c:  put_const(O_SYNC, int);
src/liblibc/lib.rs:            pub const O_SYNC : c_int = 1052672;
src/liblibc/lib.rs:            pub const O_SYNC : c_int = 16400;
src/liblibc/lib.rs:            pub const O_SYNC : c_int = 128;
src/liblibc/lib.rs:            pub const O_SYNC : c_int = 128;

bors added a commit to rust-lang-ci/rust that referenced this issue Nov 13, 2023
…cola

feat: add generate_mut_trait_impl assist

![generate_mut_trait_impl](https://github.com/rust-lang/rust-analyzer/assets/71162630/362a5a93-e109-4ffc-996e-9b6e4f54fcfa)

Generate proper `index_mut` method body refer to `index` method body may impossible due to the unpredicable case (rust-lang#15581).

Here just leave the `index_mut` method body be same as `index` method body, user can modify it manually to meet their need.
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