Skip to content

Commit 0bdc101

Browse files
authored
Rollup merge of rust-lang#135837 - ChrisDenton:trunc, r=Noratrieb
Remove test panic from File::open Fixes rust-lang#135831
2 parents 41885a4 + fed5f98 commit 0bdc101

File tree

1 file changed

+0
-3
lines changed
  • library/std/src/sys/pal/windows

1 file changed

+0
-3
lines changed

Diff for: library/std/src/sys/pal/windows/fs.rs

-3
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,6 @@ impl File {
328328
mem::size_of::<c::FILE_ALLOCATION_INFO>() as u32,
329329
);
330330
if result == 0 {
331-
if api::get_last_error().code != 0 {
332-
panic!("FILE_ALLOCATION_INFO failed!!!");
333-
}
334331
let eof = c::FILE_END_OF_FILE_INFO { EndOfFile: 0 };
335332
let result = c::SetFileInformationByHandle(
336333
handle.as_raw_handle(),

0 commit comments

Comments
 (0)