Rollup of 10 pull requests#155828
Closed
JonathanBrouwer wants to merge 43 commits intorust-lang:mainfrom
Closed
Conversation
Also use the `\Device\NamedPipe\` directly instead of the symlink to it.
…tilities to observe, set, and create a Permissions struct with certain file attributes
The hyperlink to `std::io::Error` will not be valid when moved to `core::io`. There is also a typo which I might as well fix while I'm here.
Inconsistently referenced through `std::sys` and `std::io`. Choosing `std::io` as the canonical source to make migration to `core::io` cleaner.
This version no longer requires using big import libraries and instead uses raw-dylib.
unnamed_socket: do not introduce artifical short reads/writes
…e-short-ops Remove artificial short reads/writes from TCP sockets
Use windows-sys 0.61 in tests
Some architectures, such as RISC-V and LoongArch, lack support for native byte-sized atomic operations, so weak operations fallback to non-weak operations and are actually emulated by LL/SC loop, which never fail.
Use `AtomicUsize` instead of `AtomicBool` to test weak atomic for targets lacking byte-sized atomic
The previously pinned version of openssl-sys is not compatible with OpenSSL 4.0.x. - `openssl-sys`: 0.9.111 -> 0.9.114
This updates the rust-version file to 9836b06.
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: rust-lang/rust@9836b06 Filtered ref: rust-lang/miri@9414676 Upstream diff: rust-lang/rust@e22c616...9836b06 This merge was created using https://github.com/rust-lang/josh-sync.
Automatic Rustup
bump openssl-sys to support OpenSSL 4.0.x
…xvar_epi64 Implement `_mm512_permutexvar_epi64` shim
* Suggest enclosing format string under special cases
This commit add suggestions about enclosing format string when it falls
into the following cases: `{}`, `{:?}`, `{:#?}`.
* Add HELP annotations in the UI test
Support fstat on non-file-backed FDs
This avoids an ICE due to indexing into the middle of a multi-byte character.
* Suggest `.iter()` for shared projections * address few nits * a few improvements
… r=Mark-Simulacrum ACP Implementation of PermissionsExt for Windows This PR implements the `PermissionsExt` for Windows ACP and adds file attribute methods in `FilePermissions` struct (to be decided whether we use them or not). See this [tracking issue](rust-lang#152956 (comment)) for further detail and links. I also added some comments in the code for clarifications about the ACP (e.g. whether we should have a `set_file_attributes()` + `from_file_attributes()` method to mirror what unix's `PermissionsExt` is doing). Also, some relevant links on this: * [File Attribute Constants](https://learn.microsoft.com/en-us/windows/win32/fileio/file-attribute-constants) * [`attrib` command](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/attrib) * [SetFileAttributesA](https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-setfileattributesa) * [GetFileAttributesA](https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfileattributesa) * [Window's File Attributes Column Values](https://superuser.com/questions/44812/windows-explorers-file-attribute-column-values) * [What is the 'M' attribute in Windows file system for?](https://superuser.com/questions/1621649/what-is-the-m-attribute-in-windows-file-system-for) Note: Apologies for the multiple forced push. I haven't set up my Windows VM up yet to compile and check the code, so I've been using the CI to help me with that. r? @ChrisDenton
…=Mark-Simulacrum,jackh726 prevent deref coercions in `pin!` Mitigates rust-lang#153438 using a (hopefully temporary!) typed macro idiom to ensure that when `pin!` produces a `Pin<&mut T>`, its argument is of type `T`. See rust-lang#153438 (comment) for my ideas on how this could be changed in the future.
…crum Windows: Cache the pipe filesystem handle Updates the anonymous pipe handling based on feedback from @lhecker (see rust-lang#142517 (comment)). This does two things: 1. Cache the handle to the pipe filesystem so we don't have to reopen it each time. 2. Use the `\Device\NamedPipe\` directly instead of the symlink to it.
…, r=Mark-Simulacrum Move `std::io::RawOsError` to `core::io` ACP: rust-lang/libs-team#755 Tracking issue: rust-lang#154046 Related: rust-lang#154654 ## Description As a part of moving components of `std::io` into `alloc::io` and `core::io`, there will need to be a new home for the type `RawOsError`. In this PR, I propose moving it to `core::io`, and removing it from `std::sys`. I suspect this will be quite controversial as it is a platform dependent type, but this is not the only instance of a type being conditioned on `target_os` in `core` (e.g., `core::os` and `core::ffi`). Since `RawOsError` is currently unstable, I think it's reasonable to make this move now, and worry about making it platform independent if/when it is stabilized (e.g., replacing it with a wrapper around `isize` on all platforms). --- ## Notes * No AI tooling of any kind was used during the creation of this PR.
miri subtree update Subtree update of `miri` to rust-lang/miri@f3f6dca. Created using https://github.com/rust-lang/josh-sync. r? @ghost
…anilla
Suggest enclosing format string with `""` under special cases
This commit adds suggestions on enclosing format string with `""` when it falls into the following 3 cases: `{}`, `{:?}`, `{:#?}` as mentioned in rust-lang#155508.
Currently, this commit only recognizes the above 3 cases. I wonder if we should generalize this to more cases, for example, appying this suggestion to `Block`s with only 0 or 1 `Stmt`, such as `{:#x}`, `{:^10}`, `{abc}`.
…rojections-issue-155365, r=ShoyuVanilla Suggest `.iter()` for shared projections Fixes rust-lang#155365.
Mention `DEPRECATED_LLVM_INTRINSIC` lint for internal use Since `link_llvm_intrinsics` is an internal feature, having `deprecated_llvm_intrinsic` lint appearing in https://doc.rust-lang.org/nightly/rustc/lints/listing/allowed-by-default.html#deprecated-llvm-intrinsic without mentioning its internal nature is quite confusing to the end users. This PR improves the documentation of recently merged PR rust-lang#140763 that implemented `deprecated_llvm_intrinsic` lint by mentioning the internal nature of `deprecated_llvm_intrinsic` lint and `link_llvm_intrinsics` feature. Tracking issue of unstable `link_llvm_intrinsics` feature: rust-lang#29602
Avoid improper spans when `...` or `..=` is recovered from non-ASCII - Fixes rust-lang#155799 Adjusting span endpoints by `BytePos(1)` is almost always bad news. In this case, the code assumed that it was skipping over a single ASCII character. But in the presence of parser recovery from other non-ASCII characters this resulted in an ICE due to bad string indexing when emitting suggestions.
…Brouwer Add default field values to diagnostic FormatArgs This type has a decent amount of unused fields (and I am planning to add more).
Contributor
Author
Contributor
This comment has been minimized.
This comment has been minimized.
rust-bors Bot
pushed a commit
that referenced
this pull request
Apr 26, 2026
Rollup of 10 pull requests try-job: dist-various-1 try-job: test-various try-job: x86_64-gnu-aux try-job: x86_64-gnu-llvm-21-3 try-job: x86_64-msvc-1 try-job: aarch64-apple try-job: x86_64-mingw-1 try-job: i686-msvc-2
Contributor
|
This pull request was unapproved due to being closed. |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Successful merges:
pin!#153457 (prevent deref coercions inpin!)std::io::RawOsErrortocore::io#155574 (Movestd::io::RawOsErrortocore::io)""under special cases #155693 (Suggest enclosing format string with""under special cases).iter()for shared projections #155719 (Suggest.iter()for shared projections)DEPRECATED_LLVM_INTRINSIClint for internal use #155805 (MentionDEPRECATED_LLVM_INTRINSIClint for internal use)...or..=is recovered from non-ASCII #155820 (Avoid improper spans when...or..=is recovered from non-ASCII)r? @ghost
Create a similar rollup