Rollup of 10 pull requests#155492
Closed
JonathanBrouwer wants to merge 23 commits intorust-lang:mainfrom
Closed
Conversation
This commit updates the crate dependency that the standard library has on the `wasi` crate. This is now updated to depending explicitly on the `wasip1` crate and the `wasip2` crate published on crates.io. These crates are managed in the [same location][repo] as the `wasi` crate and represent a different versioning scheme which doesn't require multi-version WASI support to require depending on the same crate at multiple versions. The code in libstd is updated to reference `wasip1` and `wasip2` directly as well. [repo]: https://github.com/bytecodealliance/wasi-rs
This variant was never constructed anywhere.
…ext_chunk, r=Mark-Simulacrum spec next chunk for trustedlen relevant to rust-lang#98326
…imulacrum net::tcp/udp: fix docs about how set_nonblocking is implemented `fcntl` `FIONBIO` doesn't even make sense, it should be `fcntl` `F_SETFL`. However, for some reason we are using `ioctl` by default -- except on Solaris where this doesn't seem to work very well. Honestly what I would have expected is that we just always use `FileDesc::set_nonblocking` also for network sockets, but for some reason we don't and there are no comments explaining this choice. Cc @nikarh (for "vita") @joboet
…lacrum fix: add aliasing rules for Box This is a new revised version for the PR [139857](rust-lang#139857), sorry for the delayed reply. I've rewritten the sentence to closely mirror the wording from `Vec::from_raw_parts`, which clearly states the transfer of ownership and its consequences. This should make the aliasing requirements much clearer. I opted not to include a note about `mem::forget` by default to keep the documentation focused on the primary contract, similar to `Vec`.
…-Simulacrum Make std::fs::File Send on UEFI Similarly to rust-lang#150990 since UEFI has no threads, this should be safe.
…ng, r=Mark-Simulacrum std: fix HashMap RNG docs wording Fixes a wording typo in the top-level HashMap docs. Changed "random number coroutine" to "random number generator" in the seed entropy paragraph. This section is security-relevant, and "generator" is the correct term in RNG context. Testing: - Not run locally (docs-only text change).
Document why `layout.align() + layout.size()` doesn't overflow This addition looks suspicious and is safety critical, but is saved by the weird `Layout` invariants.
…01, r=Kivooeo Reorganize tests from `tests/ui/issues/` The following tests are reorganized in this pull request | old-name | new-sub-dir | new-name | |-|-|-| | `auxiliary/issue-2316-a.rs` | `resolve/auxiliary` | `resolve-conflict-local-vs-glob-import-a.rs` | | `auxiliary/issue-2316-b.rs` | `resolve/auxiliary` | `resolve-conflict-local-vs-glob-import-b.rs` | | `issue-2316-c.rs` | `resolve/` | `resolve-conflict-local-vs-glob-import.rs` | | `issue-28839.rs` | `reborrow/` | `reborrow-mutable-reference.rs` | | `issue-32008.rs` | `overloaded/` | `subtyping-both-lhs-and-rhs-in-add-impl.rs` | | `issue-45425.rs` | `higher-ranked/` | `binop-lhs-hrtb-subtyping.rs` | r? Kivooeo
…ark-Simulacrum std: Update dependency on `wasi` crate This commit updates the crate dependency that the standard library has on the `wasi` crate. This is now updated to depending explicitly on the `wasip1` crate and the `wasip2` crate published on crates.io. These crates are managed in the [same location][repo] as the `wasi` crate and represent a different versioning scheme which doesn't require multi-version WASI support to require depending on the same crate at multiple versions. The code in libstd is updated to reference `wasip1` and `wasip2` directly as well. [repo]: https://github.com/bytecodealliance/wasi-rs
…ited, r=mejrs Simplify `parse_limited` Removes unnecessary arguments from `parse_limited` and cleans up feature gating of `on_unknown_attr`
…neric, r=scottmcm Delete `SizeSkeleton::Generic` This variant was never constructed anywhere. r? @scottmcm
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:
layout.align() + layout.size()doesn't overflow #155255 (Document whylayout.align() + layout.size()doesn't overflow)tests/ui/issues/#155351 (Reorganize tests fromtests/ui/issues/)wasicrate #155406 (std: Update dependency onwasicrate)parse_limited#155447 (Simplifyparse_limited)SizeSkeleton::Generic#155481 (DeleteSizeSkeleton::Generic)r? @ghost
Create a similar rollup