Skip to content
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 9 pull requests #127650

Closed
wants to merge 41 commits into from

Commits on May 10, 2024

  1. Add fn allocator method to rc/sync::Weak. Relax Rc<T>/Arc<T>::allocat…

    …or to allow unsized T.
    zachs18 committed May 10, 2024
    Configuration menu
    Copy the full SHA
    a1ad634 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2024

  1. document the cvt methods

    the8472 committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    5c46aca View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6687a3f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0ce3619 View commit details
    Browse the repository at this point in the history
  4. more fine-grained feature-detection for pidfd spawning

    we now distinguish between pidfd_spawn support, pidfd-via-fork/exec and not-supported
    the8472 committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    3e4e31b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ec0c755 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2024

  1. Initial implementation of annoymous_pipe

    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Jun 30, 2024
    Configuration menu
    Copy the full SHA
    04eed9b View commit details
    Browse the repository at this point in the history
  2. Fix compilation errors

    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Jun 30, 2024
    Configuration menu
    Copy the full SHA
    72bda33 View commit details
    Browse the repository at this point in the history
  3. Implement validation in TryFrom<OwnedFd> for PIpe* on unix

    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Jun 30, 2024
    Configuration menu
    Copy the full SHA
    42e8beb View commit details
    Browse the repository at this point in the history
  4. Move the mod pipe to std::net

    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Jun 30, 2024
    Configuration menu
    Copy the full SHA
    e170c78 View commit details
    Browse the repository at this point in the history
  5. Fix typo

    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Jun 30, 2024
    Configuration menu
    Copy the full SHA
    473fbce View commit details
    Browse the repository at this point in the history
  6. Fix tidy errors

    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Jun 30, 2024
    Configuration menu
    Copy the full SHA
    97626b6 View commit details
    Browse the repository at this point in the history
  7. Validate pipe in TryFrom<OwnedHandle> for Pipe*

    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Jun 30, 2024
    Configuration menu
    Copy the full SHA
    d60438f View commit details
    Browse the repository at this point in the history
  8. Refactor: Extract new method FileDesc::get_access_mode

    ALso fixed a bug in the original implementation
    
    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Jun 30, 2024
    Configuration menu
    Copy the full SHA
    b7af685 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2024

  1. Add testing for anonymous pipe

    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    4c6b6bb View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2024

  1. Refactor: Put mod unix & windows into separate files

    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    594abec View commit details
    Browse the repository at this point in the history
  2. Fix anonymous_pipe impl for not supported targets

    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    d9f0980 View commit details
    Browse the repository at this point in the history
  3. Optimize: Add #[inline] to very simple function

    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    6c755a3 View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2024

  1. Configuration menu
    Copy the full SHA
    53d3e62 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. Refactor: Make AcessMode an enum`

    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    d15cee5 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2024

  1. remove unnecessary git usages

    `Config::src` already contains the top-level path, so we don't need to
    add git overhead just to reach this path.
    
    Signed-off-by: onur-ozkan <work@onurozkan.dev>
    onur-ozkan committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    0134bd2 View commit details
    Browse the repository at this point in the history
  2. Update mod.rs

    Co-authored-by: Alphyr <47725341+a1phyr@users.noreply.github.com>
    NobodyXu and a1phyr committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    e22dd1a View commit details
    Browse the repository at this point in the history
  3. Move std::net::pip* to a new mod std::pipe

    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    100fe5c View commit details
    Browse the repository at this point in the history
  4. Remove use of macro_rules!

    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    62b846e View commit details
    Browse the repository at this point in the history
  5. Replace TryFrom<Owned*> with From

    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    4547b30 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2024

  1. solve -> solve/mod

    lcnr committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    f56b207 View commit details
    Browse the repository at this point in the history
  2. Fix compilation on non-unix, non-windows targets

    Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
    NobodyXu committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    72f5999 View commit details
    Browse the repository at this point in the history
  3. 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.
    nikic committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    55256c5 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2024

  1. Configuration menu
    Copy the full SHA
    ec05c4e View commit details
    Browse the repository at this point in the history
  2. 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).
    dtolnay committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    7f1518b View commit details
    Browse the repository at this point in the history
  3. Lower timeout of CI jobs to 4 hours

    The previous value, 10 hours, is unnecessarily long, since most of our jobs finish within 2.5 hours currently.
    Kobzol committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    3f4b9dd View commit details
    Browse the repository at this point in the history
  4. enable fuzzing of SearchGraph

    fully move it into `rustc_type_ir` and make it
    independent of `Interner`.
    lcnr authored and compiler-errors committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    15f770b View commit details
    Browse the repository at this point in the history
  5. 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
    matthiaskrgr committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    0097800 View commit details
    Browse the repository at this point in the history
  6. 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.
    matthiaskrgr committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    c30bedf View commit details
    Browse the repository at this point in the history
  7. 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
    matthiaskrgr committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    627a13b View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#127153 - NobodyXu:pipe, r=jhpratt

    Initial implementation of anonymous_pipe API
    
    ACP completed in rust-lang/libs-team#375
    Tracking issue: rust-lang#127154
    matthiaskrgr committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    d9e13af View commit details
    Browse the repository at this point in the history
  9. 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.
    matthiaskrgr committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    f9ceb65 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#127552 - onur-ozkan:unnecessary-git-usage, …

    …r=Kobzol
    
    remove unnecessary `git` usages
    
    `Config::src` already contains the top-level path, so we don't need to add git overhead just to reach this path.
    matthiaskrgr committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    d0e1f4c View commit details
    Browse the repository at this point in the history
  11. 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
    matthiaskrgr committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    1ddb2d2 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#127627 - lcnr:rustc_search_graph, r=compile…

    …r-errors
    
    generalize search graph to enable fuzzing
    
    I do not believe it to be feasible to correctly implement the search graph without fuzzing. This PR enables this by requiring a fuzzer to only implement three new traits:
    - `Cx`: implemented by all `I: Interner`
    - `ProofTreeBuilder`: implemented by `struct ProofTreeBuilder<D>` for all `D: SolverDelegate`
    - `Delegate`: implemented for a new `struct SearchGraphDelegate<D>` for all `D: SolverDelegate`
    
    It also moves the evaluation cache implementation into `rustc_type_ir`, requiring `Interner` to provide methods to create and access arbitrary `WithDepNode<T>` and to provide mutable access to a given `GlobalCache`. It otherwise does not change the API surface for users of the shared library.
    
    This change should not impact behavior in any way.
    
    r? `@compiler-errors`
    matthiaskrgr committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    e486eeb View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#127648 - Kobzol:ci-lower-timeout, r=pietroa…

    …lbini
    
    Lower timeout of CI jobs to 4 hours
    
    The previous value, 10 hours, is unnecessarily long, since most of our jobs finish within 2.5 hours currently. This could help us detect abnormally long CI runs.
    
    r? `@pietroalbini`
    matthiaskrgr committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    f5909c5 View commit details
    Browse the repository at this point in the history