diff options
| author | Chris Denton <chris@chrisdenton.dev> | 2025-01-21 17:27:24 +0000 |
|---|---|---|
| committer | Chris Denton <chris@chrisdenton.dev> | 2025-01-21 17:31:17 +0000 |
| commit | fed5f98c47e64bc5e96679165d16e5eec8b4917e (patch) | |
| tree | 80d6d126f9733e66f69ae9fbe8076e2928704402 | |
| parent | cd805f09ffbfa3896c8f50a619de9b67e1d9f3c3 (diff) | |
| download | rust-fed5f98c47e64bc5e96679165d16e5eec8b4917e.tar.gz rust-fed5f98c47e64bc5e96679165d16e5eec8b4917e.zip | |
Remove test panic from File::open
| -rw-r--r-- | library/std/src/sys/pal/windows/fs.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/library/std/src/sys/pal/windows/fs.rs b/library/std/src/sys/pal/windows/fs.rs index b3659351b8c..f8493c21ad4 100644 --- a/library/std/src/sys/pal/windows/fs.rs +++ b/library/std/src/sys/pal/windows/fs.rs @@ -328,9 +328,6 @@ impl File { mem::size_of::<c::FILE_ALLOCATION_INFO>() as u32, ); if result == 0 { - if api::get_last_error().code != 0 { - panic!("FILE_ALLOCATION_INFO failed!!!"); - } let eof = c::FILE_END_OF_FILE_INFO { EndOfFile: 0 }; let result = c::SetFileInformationByHandle( handle.as_raw_handle(), |
