diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-01-22 20:37:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-22 20:37:27 +0100 |
| commit | 0bdc1015cc0a1250c0f26c4891de17834213ebf6 (patch) | |
| tree | bd04a9d31baf6a70ee697ec5150371643cebb080 | |
| parent | 41885a4858034452a73b9f6e44b8819c389f1af7 (diff) | |
| parent | fed5f98c47e64bc5e96679165d16e5eec8b4917e (diff) | |
| download | rust-0bdc1015cc0a1250c0f26c4891de17834213ebf6.tar.gz rust-0bdc1015cc0a1250c0f26c4891de17834213ebf6.zip | |
Rollup merge of #135837 - ChrisDenton:trunc, r=Noratrieb
Remove test panic from File::open Fixes #135831
| -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(), |
