Skip to content

Commit

Permalink
Rollup merge of rust-lang#135837 - ChrisDenton:trunc, r=Noratrieb
Browse files Browse the repository at this point in the history
Remove test panic from File::open

Fixes rust-lang#135831
  • Loading branch information
jieyouxu authored Jan 22, 2025
2 parents dc42150 + fed5f98 commit 127bc47
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions library/std/src/sys/pal/windows/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 127bc47

Please sign in to comment.