Skip to content

Conversation

@github-actions
Copy link

@github-actions github-actions bot commented Mar 4, 2025

This is an automated PR to update the subtree/library branch to the changes
from 2025-02-11 (6171d94)
to 2025-02-10 (124cc92), inclusive.
Do not merge this PR using the merge queue. Instead, use the rebase strategy.

kleisauke and others added 30 commits March 4, 2025 04:36
Align it with musl, which also prefers using lstat() here.
Compare: rust-lang/backtrace-rs@230570f...4d7906b

Mostly cleanups and enabling backtraces for the RTEMS target.
Co-authored-by: Yotam Ofek <[email protected]>
Co-authored-by: Hanna Kruppe <[email protected]>
I prefer when we can ship the same version of backtrace on crates.io,
and this will be the next published version.

Compare: rust-lang/backtrace-rs@4d7906b...0.3.75

Mostly internal-to-backtrace changes, plus a tiny code size win.
The implementation is unsound when a partially consumed iterator has
some elements buffered in the front/back parts and cloning the Iterator
removes the capacity from the backing vec::IntoIter.
Fixes
```
Checking stage0 library artifacts {alloc, core, panic_abort, panic_unwind, proc_macro, std, sysroot, test, unwind} (x86_64-unknown-linux-gnu)
warning: profile package spec `adler` in profile `release` did not match any packages

	Did you mean `adler2`?
```
Searching "fma" in the Rust documentation returns results for
`intrinsics::fma*`, but does not point to the user-facing `mul_add`. Add
aliases for `fma*` and the IEEE operation name `fusedMultiplyAdd`. Add
the IEEE name to `sqrt` as well, `squareRoot`.
Gated behind an unstable `-Z emscripten-wasm-eh` flag
This renames variables named `str` to other names, to make sure `str`
always refers to a type.

It's confusing to read code where `str` (or another standard type name)
is used as an identifier. It also produces misleading syntax
highlighting.
This always falls back to sleeping since there is no way
to notify a condvar on a target without threads.
m4rch3n1ng and others added 27 commits March 4, 2025 04:36
i am not quite sure how this failure is in any way related to this pr,
since i am only touching inherent functions on str? but sure.
This includes [1] which is required for LLVM 20.

[1]: rust-lang/compiler-builtins#752
as well as `HashMap::get_many_unchecked_mut` to
`HashMap::get_disjoint_unchecked_mut`.
While working on rust-lang#122661, some of these started triggering our "unnecessary parens" lints due to a change in the `assert!` desugaring. A cursory search identified a few more. Some of these have been carried from before 1.0, were a bulk rename from the previous name of `assert!` left them in that state. I went and removed as many of these unnecessary parens as possible in order to have fewer annoyances in the future if we make the lint smarter.
- Just a copy of sys/net/unsupported.
- Will make the future net PRs easier to review.

Signed-off-by: Ayush Singh <[email protected]>
This was never modified since `std::net` was originally introduced, when
each CI job was running multiple jobs concurrently which caused issues
with fighting over the same ports. This is not the case in the current
CI infrastructure, so remove this relic.
This PR lets `impl Default for Rc<str>` re-use the implementation
for `Rc::<[u8]>::default()`. The previous version only calculted the
memory layout at runtime, even though it should be known at compile
time, resulting in an additional function call.

The same optimization is done for `Rc<CStr>`.

Generated byte code: <https://godbolt.org/z/dfq73jsoP>.

Resolves <rust-lang#135784>.
Because the neutral element of `<fNN as iter::Sum>` was changed to
`neg_zero`, the documentation needed to be updated, as it was reporting
inadequate information about what should be expected from the return.

Co-authored-by: Jubilee <[email protected]>
This allows Rust on Fuchsia to use a number of function calls from libc:

* dirfd
* fdatasync
* flock with LOCK_EX, LOCK_SH, LOCK_NB, LOCK_UN
* fstatat
@carolynzech carolynzech merged commit 347aa68 into subtree/library Mar 4, 2025
carolynzech pushed a commit that referenced this pull request Jun 13, 2025
Toward solving #19 

This pr adds some additional harnesses for transmute_unchecked and
transmute.

With this, we suspect that the main harnesses for part 1 of challenge 1
(verifying the transmute intrinsics directly) are there (besides adding
more of the same kinds of harnesses, like the 2-way harnesses for more
types). We go into more detail about what needs to be done for part 1,
as well as what has been done and what can't be done here:
https://docs.google.com/document/d/1zFGANNMx8mZ8fucKrN--ELwKASUPeP20THH6M_fQ7jg/edit?usp=sharing

Just one note: transmute has far fewer harnesses than
transmute_unchecked here -- this is because it is not currently possible
to write a wrapper for transmute, and it is thus not possible to write a
function contract. A lot of the harnesses for transmute_unchecked test
the function contract's validity clause, rather than the function
itself, explaining this disparity.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

---------

Co-authored-by: AlexLB99 <[email protected]>
Co-authored-by: Michael Tautschnig <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.