Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e4f6895

Browse files
authoredJan 22, 2025
Rollup merge of rust-lang#135837 - ChrisDenton:trunc, r=Noratrieb
Remove test panic from File::open Fixes rust-lang#135831
2 parents 128e9d2 + fed5f98 commit e4f6895

File tree

1 file changed

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

1 file changed

+0
-3
lines changed
 

‎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)
Failed to load comments.