about summary refs log tree commit diff
path: root/library/std/src/sys/pal/windows/stdio.rs
AgeCommit message (Collapse)AuthorLines
2025-03-09std: move stdio to `sys`joboet-472/+0
As per #117276, this moves the platform definitions of `Stdout` and friends into `sys`. This PR also unifies the UNIX and Hermit implementations and moves the `__rust_print_err` function needed by libunwind on SGX into the dedicated module for such helper functions.
2025-03-06library: Use size_of from the prelude instead of importedThalia Archibald-1/+1
Use `std::mem::{size_of, size_of_val, align_of, align_of_val}` from the prelude instead of importing or qualifying them. These functions were added to all preludes in Rust 1.80.
2025-02-16add MAX_LEN_UTF8 and MAX_LEN_UTF16 constantsHTGAzureX1212-1/+2
2025-01-11Add inherent versions of MaybeUninit methods for slicesltdk-3/+3
2024-12-21Windows: Use WriteFile to write to a UTF-8 consoleChris Denton-1/+23
2024-11-26std: update internal uses of `io::const_error!`joboet-4/+4
2024-08-03Rollup merge of #127586 - zachs18:more-must-use, r=cuviperMatthias Krüger-2/+2
Add `#[must_use]` to some `into_raw*` functions. cc #121287 r? ``@cuviper`` Adds `#[must_use = "losing the pointer will leak memory"]`[^1] to `Box::into_raw(_with_allocator)`, `Vec::into_raw_parts(_with_alloc)`, `String::into_raw_parts`[^2], and `rc::{Rc, Weak}::into_raw_with_allocator` (Rc's normal `into_raw` and all of `Arc`'s `into_raw*`s are already `must_use`). Adds `#[must_use = "losing the raw <resource name may leak resources"]` to `IntoRawFd::into_raw_fd`, `IntoRawSocket::into_raw_socket`, and `IntoRawHandle::into_raw_handle`. [^1]: "*will* leak memory" may be too-strong wording (since `Box`/`Vec`/`String`/`rc::Weak` might not have a backing allocation), but I left it as-is for simplicity and consistency. [^2]: `String::into_raw_parts`'s `must_use` message is changed from the previous (possibly misleading) "`self` will be dropped if the result is not used".
2024-07-29Reformat `use` declarations.Nicholas Nethercote-7/+4
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2024-07-15Don't re-export `c_int` from `c`Chris Denton-6/+6
2024-07-15Remove DWORDChris Denton-6/+2
2024-07-15Remove ULONGChris Denton-2/+2
2024-07-15Remove LPVOIDChris Denton-1/+1
2024-07-15Remove LPWSTRChris Denton-6/+6
2024-07-10Explicitly ignore `into_raw_handle()` using `let _ =` in sys/pal/windows.Zachary S-2/+2
2024-07-04Update windows-bindgen to 0.58.0Chris Denton-7/+1
2024-06-09Migrate more things to WinErrorChris Denton-2/+2
2024-01-11std: fix module references on Windowsjoboet-1/+1
2024-01-11std: begin moving platform support modules into `pal`joboet-0/+462