Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 21866ee

Browse files
committedMar 7, 2025
Remove std::os::cygwin::raw
1 parent 754676f commit 21866ee

File tree

3 files changed

+0
-91
lines changed

3 files changed

+0
-91
lines changed
 

‎library/std/src/os/cygwin/fs.rs

-20
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,11 @@
11
#![stable(feature = "metadata_ext", since = "1.1.0")]
22
use crate::fs::Metadata;
3-
#[allow(deprecated)]
4-
use crate::os::cygwin::raw;
53
use crate::sys_common::AsInner;
64
/// OS-specific extensions to [`fs::Metadata`].
75
///
86
/// [`fs::Metadata`]: crate::fs::Metadata
97
#[stable(feature = "metadata_ext", since = "1.1.0")]
108
pub trait MetadataExt {
11-
/// Gain a reference to the underlying `stat` structure which contains
12-
/// the raw information returned by the OS.
13-
///
14-
/// The contents of the returned `stat` are **not** consistent across
15-
/// Unix platforms. The `os::unix::fs::MetadataExt` trait contains the
16-
/// cross-Unix abstractions contained within the raw stat.
17-
#[stable(feature = "metadata_ext", since = "1.1.0")]
18-
#[deprecated(
19-
since = "1.8.0",
20-
note = "deprecated in favor of the accessor \
21-
methods of this trait"
22-
)]
23-
#[allow(deprecated)]
24-
fn as_raw_stat(&self) -> &raw::stat;
259
#[stable(feature = "metadata_ext2", since = "1.8.0")]
2610
fn st_dev(&self) -> u64;
2711
#[stable(feature = "metadata_ext2", since = "1.8.0")]
@@ -61,10 +45,6 @@ pub trait MetadataExt {
6145
}
6246
#[stable(feature = "metadata_ext", since = "1.1.0")]
6347
impl MetadataExt for Metadata {
64-
#[allow(deprecated)]
65-
fn as_raw_stat(&self) -> &raw::stat {
66-
unsafe { &*(self.as_inner().as_inner() as *const libc::stat as *const raw::stat) }
67-
}
6848
fn st_dev(&self) -> u64 {
6949
self.as_inner().as_inner().st_dev as u64
7050
}

‎library/std/src/os/cygwin/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
//! Cygwin-specific definitions
22
#![stable(feature = "raw_ext", since = "1.1.0")]
33
pub mod fs;
4-
pub mod raw;

‎library/std/src/os/cygwin/raw.rs

-70
This file was deleted.

0 commit comments

Comments
 (0)
Failed to load comments.