Sets as_flags as unstable

This commit is contained in:
Federico Ponzi 2020-09-16 19:40:44 +02:00
parent 321b680fe6
commit 70292d4506
No known key found for this signature in database
GPG Key ID: CFA9CCFE5363D0C6

View File

@ -367,7 +367,7 @@ pub trait OpenOptionsExt {
/// let file_name = CString::new("foo.txt").unwrap(); /// let file_name = CString::new("foo.txt").unwrap();
/// let file = unsafe { libc::open(file_name.as_c_str().as_ptr(), options.as_flags().unwrap()) }; /// let file = unsafe { libc::open(file_name.as_c_str().as_ptr(), options.as_flags().unwrap()) };
/// ``` /// ```
#[stable(feature = "open_options_ext_as_flags", since = "1.47.0")] #[unstable(feature = "open_options_ext_as_flags", issue = "76801")]
fn as_flags(&self) -> io::Result<libc::c_int>; fn as_flags(&self) -> io::Result<libc::c_int>;
} }