Auto merge of #128404 - compiler-errors:revert-dead-code-changes, r=p… · model-checking/verify-rust-std@0b5f1b8 (original) (raw)
2 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -103,6 +103,7 @@ use crate::ascii::Char as AsciiChar; | ||
103 | 103 | /// ``` |
104 | 104 | #[cfg_attr(not(test), rustc_diagnostic_item = "Default")] |
105 | 105 | #[stable(feature = "rust1", since = "1.0.0")] |
106 | +#[cfg_attr(not(bootstrap), rustc_trivial_field_reads)] | |
106 | 107 | pub trait Default: Sized { |
107 | 108 | /// Returns the "default value" for a type. |
108 | 109 | /// |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -47,6 +47,8 @@ pub fn anon_pipe() -> io::Result<(AnonPipe, AnonPipe)> { | ||
47 | 47 | } |
48 | 48 | |
49 | 49 | impl AnonPipe { |
50 | +#[allow(dead_code)] | |
51 | +// FIXME: This function seems legitimately unused. | |
50 | 52 | pub fn try_clone(&self) -> io::Result<Self> { |
51 | 53 | self.0.duplicate().map(Self) |
52 | 54 | } |
@@ -85,6 +87,8 @@ impl AnonPipe { | ||
85 | 87 | self.0.is_write_vectored() |
86 | 88 | } |
87 | 89 | |
90 | +#[allow(dead_code)] | |
91 | +// FIXME: This function seems legitimately unused. | |
88 | 92 | pub fn as_file_desc(&self) -> &FileDesc { |
89 | 93 | &self.0 |
90 | 94 | } |