std: Clean out #[deprecated] APIs
This commit cleans out a large amount of deprecated APIs from the standard library and some of the facade crates as well, updating all users in the compiler and in tests as it goes along.
This commit is contained in:
parent
d754722a04
commit
d4a2c94180
166 changed files with 602 additions and 4014 deletions
|
@ -388,9 +388,7 @@ mod tests {
|
|||
fn test_file_desc() {
|
||||
// Run this test with some pipes so we don't have to mess around with
|
||||
// opening or closing files.
|
||||
let os::Pipe { reader, writer } = unsafe { os::pipe().unwrap() };
|
||||
let mut reader = FileDesc::new(reader, true);
|
||||
let mut writer = FileDesc::new(writer, true);
|
||||
let (mut reader, mut writer) = unsafe { ::sys::os::pipe().unwrap() };
|
||||
|
||||
writer.write(b"test").unwrap();
|
||||
let mut buf = [0; 4];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue