-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 6 pull requests #127646
Rollup of 6 pull requests #127646
Commits on May 10, 2024
-
Add fn allocator method to rc/sync::Weak. Relax Rc<T>/Arc<T>::allocat…
…or to allow unsized T.
Configuration menu - View commit details
-
Copy full SHA for a1ad634 - Browse repository at this point
Copy the full SHA a1ad634View commit details
Commits on Jun 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 5c46aca - Browse repository at this point
Copy the full SHA 5c46acaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6687a3f - Browse repository at this point
Copy the full SHA 6687a3fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ce3619 - Browse repository at this point
Copy the full SHA 0ce3619View commit details -
more fine-grained feature-detection for pidfd spawning
we now distinguish between pidfd_spawn support, pidfd-via-fork/exec and not-supported
Configuration menu - View commit details
-
Copy full SHA for 3e4e31b - Browse repository at this point
Copy the full SHA 3e4e31bView commit details -
Configuration menu - View commit details
-
Copy full SHA for ec0c755 - Browse repository at this point
Copy the full SHA ec0c755View commit details
Commits on Jul 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 53d3e62 - Browse repository at this point
Copy the full SHA 53d3e62View commit details
Commits on Jul 11, 2024
-
Update dist-riscv64-linux to binutils 2.40
binutils 2.40 is required by LLVM 19, as older versions do not know about the zmmull extension. I've had to backport some patches to glibc and gcc as well, as they don't build with binutils 2.40. Alternatively, we could also switch to glibc 2.35 and gcc 12 (I think). I figured we'd want to avoid the glibc version change, but if that's fine for riscv I can go with that instead.
Configuration menu - View commit details
-
Copy full SHA for 55256c5 - Browse repository at this point
Copy the full SHA 55256c5View commit details
Commits on Jul 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ec05c4e - Browse repository at this point
Copy the full SHA ec05c4eView commit details -
Configuration menu - View commit details
-
Copy full SHA for eb70788 - Browse repository at this point
Copy the full SHA eb70788View commit details -
On trait bound mismatch, detect multiple crate versions in dep tree
When encountering an E0277, if the type and the trait both come from a crate with the same name but different crate number, we explain that there are multiple crate versions in the dependency tree. If there's a type that fulfills the bound, and it has the same name as the passed in type and has the same crate name, we explain that the same type in two different versions of the same crate *are different*. ``` error[E0277]: the trait bound `Type: dependency::Trait` is not satisfied --> src/main.rs:4:18 | 4 | do_something(Type); | ------------ ^^^^ the trait `dependency::Trait` is not implemented for `Type` | | | required by a bound introduced by this call | help: you have multiple different versions of crate `dependency` in your dependency graph --> src/main.rs:1:5 | 1 | use bar::do_something; | ^^^ one version of crate `dependency` is used here, as a dependency of crate `bar` 2 | use dependency::Type; | ^^^^^^^^^^ one version of crate `dependency` is used here, as a direct dependency of the current crate note: two types coming from two different versions of the same crate are different types even if they look the same --> /home/gh-estebank/crate_versions/baz-2/src/lib.rs:1:1 | 1 | pub struct Type; | ^^^^^^^^^^^^^^^ this type doesn't implement the required trait | ::: /home/gh-estebank/crate_versions/baz/src/lib.rs:1:1 | 1 | pub struct Type; | ^^^^^^^^^^^^^^^ this type implements the required trait 2 | pub trait Trait {} | --------------- this is the required trait note: required by a bound in `bar::do_something` --> /home/gh-estebank/crate_versions/baz/src/lib.rs:4:24 | 4 | pub fn do_something<X: Trait>(_: X) {} | ^^^^^ required by this bound in `do_something` ``` Address rust-lang#22750.
Configuration menu - View commit details
-
Copy full SHA for c997e71 - Browse repository at this point
Copy the full SHA c997e71View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2fbb9e6 - Browse repository at this point
Copy the full SHA 2fbb9e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for d55bf26 - Browse repository at this point
Copy the full SHA d55bf26View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5099d71 - Browse repository at this point
Copy the full SHA 5099d71View commit details -
Configuration menu - View commit details
-
Copy full SHA for a0f5dee - Browse repository at this point
Copy the full SHA a0f5deeView commit details -
Add instability attribute on private const_strlen function
A `rustc_const_stable` attribute by itself has nonintuitive purpose when placed in a public module. Separately, it would probably be okay to rename `const_strlen` to just `strlen` to make it more clear this is our general-purpose implementation of strlen now, not something specifically for const (avoiding confusion like in PR 127444).
Configuration menu - View commit details
-
Copy full SHA for 7f1518b - Browse repository at this point
Copy the full SHA 7f1518bView commit details -
Rollup merge of rust-lang#124944 - estebank:multiple-crate-versions, …
…r=fee1-dead On trait bound mismatch, detect multiple crate versions in dep tree When encountering an E0277, if the type and the trait both come from a crate with the same name but different crate number, we explain that there are multiple crate versions in the dependency tree. If there's a type that fulfills the bound, and it has the same name as the passed in type and has the same crate name, we explain that the same type in two different versions of the same crate *are different*. ``` error[E0277]: the trait bound `Type: dependency::Trait` is not satisfied --> src/main.rs:4:18 | 4 | do_something(Type); | ------------ ^^^^ the trait `dependency::Trait` is not implemented for `Type` | | | required by a bound introduced by this call | help: you have multiple different versions of crate `dependency` in your dependency graph --> src/main.rs:1:5 | 1 | use bar::do_something; | ^^^ one version of crate `dependency` is used here, as a dependency of crate `bar` 2 | use dependency::Type; | ^^^^^^^^^^ one version of crate `dependency` is used here, as a direct dependency of the current crate note: two types coming from two different versions of the same crate are different types even if they look the same --> /home/gh-estebank/crate_versions/baz-2/src/lib.rs:1:1 | 1 | pub struct Type; | ^^^^^^^^^^^^^^^ this type doesn't implement the required trait | ::: /home/gh-estebank/crate_versions/baz/src/lib.rs:1:1 | 1 | pub struct Type; | ^^^^^^^^^^^^^^^ this type implements the required trait 2 | pub trait Trait {} | --------------- this is the required trait note: required by a bound in `bar::do_something` --> /home/gh-estebank/crate_versions/baz/src/lib.rs:4:24 | 4 | pub fn do_something<X: Trait>(_: X) {} | ^^^^^ required by this bound in `do_something` ``` Address rust-lang#22750.
Configuration menu - View commit details
-
Copy full SHA for ca0aee4 - Browse repository at this point
Copy the full SHA ca0aee4View commit details -
Rollup merge of rust-lang#124980 - zachs18:rc-allocator, r=Amanieu
Generalize `fn allocator` for Rc/Arc. Split out from rust-lang#119761 - For `Rc`/`Arc`, the existing associated `fn`s are changed to allow unsized pointees. - For `Weak`s, new methods are added. ```@rustbot``` label +A-allocators
Configuration menu - View commit details
-
Copy full SHA for 5361791 - Browse repository at this point
Copy the full SHA 5361791View commit details -
Rollup merge of rust-lang#126639 - sayantn:amx, r=Amanieu
Add AMX target-features and `x86_amx_intrinsics` feature flag This is an effort towards rust-lang#126622. This adds support for all 5 target-features for `AMX`, and introduces the feature flag `x86_amx_intrinsics`, which would gate these target-features and the yet-to-be-implemented amx intrinsics in stdarch.
Configuration menu - View commit details
-
Copy full SHA for 4d1e87d - Browse repository at this point
Copy the full SHA 4d1e87dView commit details -
Rollup merge of rust-lang#126827 - the8472:pidfd-spawn, r=workingjubilee
Use pidfd_spawn for faster process spawning when a PidFd is requested glibc 2.39 added `pidfd_spawnp` and `pidfd_getpid` which makes it possible to get pidfds while staying on the CLONE_VFORK path. verified that vfork gets used with strace: ``` $ strace -ff -e pidfd_open,clone3,openat,execve,waitid,close ./x test std --no-doc -- pidfd [...] [pid 2820532] clone3({flags=CLONE_VM|CLONE_PIDFD|CLONE_VFORK|CLONE_CLEAR_SIGHAND, pidfd=0x7b7f885fec6c, exit_signal=SIGCHLD, stack=0x7b7f88aff000, stack_size=0x9000}strace: Process 2820533 attached <unfinished ...> [pid 2820533] execve("/home/the8472/bin/sleep", ["sleep", "1000"], 0x7ffdd0e268d8 /* 107 vars */) = -1 ENOENT (No such file or directory) [pid 2820533] execve("/home/the8472/.cargo/bin/sleep", ["sleep", "1000"], 0x7ffdd0e268d8 /* 107 vars */) = -1 ENOENT (No such file or directory) [pid 2820533] execve("/usr/local/bin/sleep", ["sleep", "1000"], 0x7ffdd0e268d8 /* 107 vars */) = -1 ENOENT (No such file or directory) [pid 2820533] execve("/usr/bin/sleep", ["sleep", "1000"], 0x7ffdd0e268d8 /* 107 vars */ <unfinished ...> [pid 2820532] <... clone3 resumed> => {pidfd=[3]}, 88) = 2820533 [pid 2820533] <... execve resumed>) = 0 [pid 2820532] openat(AT_FDCWD, "/proc/self/fdinfo/3", O_RDONLY|O_CLOEXEC) = 4 [pid 2820532] close(4) = 0 ``` Tracking issue: rust-lang#82971
Configuration menu - View commit details
-
Copy full SHA for 8392cac - Browse repository at this point
Copy the full SHA 8392cacView commit details -
Rollup merge of rust-lang#127433 - dtolnay:conststrlen, r=workingjubilee
Stabilize const_cstr_from_ptr (CStr::from_ptr, CStr::count_bytes) Completed the pair of FCPs rust-lang#113219 (comment) + rust-lang#114441 (comment). `CStr::from_ptr` is covered by just the first FCP on its own. `CStr::count_bytes` requires the approval of both FCPs. The second paragraph of the first link and the last paragraph of the second link explain the relationship between the two FCPs. As both have been approved, we can proceed with stabilizing `const` on both of these already-stable functions.
Configuration menu - View commit details
-
Copy full SHA for 73ee1a9 - Browse repository at this point
Copy the full SHA 73ee1a9View commit details -
Rollup merge of rust-lang#127613 - nikic:riscv-update, r=cuviper
Update dist-riscv64-linux to binutils 2.40 binutils 2.40 is required by LLVM 19, as older versions do not know about the zmmul extension. I've had to backport some patches to glibc and gcc as well, as they don't build with binutils 2.40. Alternatively, we could also switch to glibc 2.35 and gcc 10 (I think). I figured we'd want to avoid the glibc version change, but if that's fine for riscv I can go with that instead. r? ```@cuviper``` try-job: dist-riscv64-linux
Configuration menu - View commit details
-
Copy full SHA for 0d3fdbc - Browse repository at this point
Copy the full SHA 0d3fdbcView commit details