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 10 pull requests #110214

Merged
merged 39 commits into from
Apr 12, 2023
Merged

Rollup of 10 pull requests #110214

merged 39 commits into from
Apr 12, 2023

Commits on Apr 3, 2023

  1. Update env.rs

    Remove `Errors` section from `var_os` documentation
    fleetingbytes authored Apr 3, 2023
    Configuration menu
    Copy the full SHA
    9f1a3a1 View commit details
    Browse the repository at this point in the history
  2. add situation where var_os returns None

    Re-introduced some of the former errors as situations where `None` is returned.
    fleetingbytes authored Apr 3, 2023
    Configuration menu
    Copy the full SHA
    c252f0d View commit details
    Browse the repository at this point in the history
  3. remove self-reference in var_os doc

    Co-authored-by: León Orell Valerian Liehr <me@fmease.dev>
    fleetingbytes and fmease authored Apr 3, 2023
    Configuration menu
    Copy the full SHA
    5618c8e View commit details
    Browse the repository at this point in the history
  4. Remove redundant empty line

    one is enough
    fleetingbytes authored Apr 3, 2023
    Configuration menu
    Copy the full SHA
    a450557 View commit details
    Browse the repository at this point in the history
  5. Preserve potential mood for equal or NUL sign

    Original `var_os` description said that it _may_ return an error if the value contains `=` or NUL. Let's make no promises on the `None` return value in these situation either, keep it in the [potential mood](https://en.wikipedia.org/wiki/Grammatical_mood#Potential).
    fleetingbytes authored Apr 3, 2023
    Configuration menu
    Copy the full SHA
    4cb73cc View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2023

  1. Configuration menu
    Copy the full SHA
    ad26dab View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a5e2311 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    50be2a3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f465bc7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    10f7ba5 View commit details
    Browse the repository at this point in the history
  6. Enable loongarch64 LLVM target

    zhaixiaojuan authored and heiher committed Apr 4, 2023
    Configuration menu
    Copy the full SHA
    ccf5417 View commit details
    Browse the repository at this point in the history
  7. Add loongarch64 to exception list

    zhaixiaojuan authored and heiher committed Apr 4, 2023
    Configuration menu
    Copy the full SHA
    ca8cad7 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b7c5323 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    737e1d2 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2023

  1. Pass host linker to compiletest.

    Tests marked `// force-host` were using the default linker, even if a
    custom linker was configured in config.toml.
    
    This change adds a new flag, --host-linker, to compiletest, and renames
    --linker to --target-linker.
    jfgoog committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    7944930 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2023

  1. Configuration menu
    Copy the full SHA
    bf1758d View commit details
    Browse the repository at this point in the history
  2. Define MIN_ALIGN for loongarch64

    zhaixiaojuan authored and heiher committed Apr 7, 2023
    Configuration menu
    Copy the full SHA
    a3f0046 View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2023

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

Commits on Apr 10, 2023

  1. Configuration menu
    Copy the full SHA
    d92f74e View commit details
    Browse the repository at this point in the history
  2. tests

    compiler-errors committed Apr 10, 2023
    Configuration menu
    Copy the full SHA
    4adee91 View commit details
    Browse the repository at this point in the history
  3. Fix typos in librustdoc

    DaniPopes committed Apr 10, 2023
    Configuration menu
    Copy the full SHA
    b410f3f View commit details
    Browse the repository at this point in the history
  4. Fix remaining typos

    DaniPopes committed Apr 10, 2023
    Configuration menu
    Copy the full SHA
    f470c29 View commit details
    Browse the repository at this point in the history
  5. rustdoc: remove redundant expandSection code from main.js

    This functionality is already tested in `hash-item-expansion.goml`,
    and was implemented twice:
    
    * First, in code that ran at load time and at hash change:
      917cdd2
    
    * Later, the hash change event handler was itself run at load time,
      and the code handling both cases diverged in implementation,
      though their behavior still matches pretty well:
      f66a331
    notriddle committed Apr 10, 2023
    Configuration menu
    Copy the full SHA
    dd28cfb View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2023

  1. Break up long first paragraph

    Further referring to `var_os` as a "function" (like in `var`), rather than "method".
    fleetingbytes authored Apr 11, 2023
    Configuration menu
    Copy the full SHA
    7d26963 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    72bfd55 View commit details
    Browse the repository at this point in the history
  3. Fix x test ui --target foo when download-rustc is enabled

    Previously, we would never build the target std, only the host std.
    jyn514 committed Apr 11, 2023
    Configuration menu
    Copy the full SHA
    47ff60d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d5339be View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c37e728 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4e84d69 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2023

  1. Rollup merge of rust-lang#96971 - zhaixiaojuan:master, r=wesleywiser

    Initial support for loongarch64-unknown-linux-gnu
    
    Hi, We hope to add a new port in rust for LoongArch.
    
    LoongArch intro
    LoongArch is a RISC style ISA which is independently designed by Loongson
    Technology in China. It is divided into two versions, the 32-bit version (LA32)
    and the 64-bit version (LA64). LA64 applications have application-level
    backward binary compatibility with LA32 applications. LoongArch is composed of
    a basic part (Loongson Base) and an expanded part. The expansion part includes
    Loongson Binary Translation (LBT), Loongson VirtualiZation (LVZ), Loongson SIMD
    EXtension (LSX) and Loongson Advanced SIMD EXtension(LASX).
    
    Currently the LA464 processor core supports LoongArch ISA and the Loongson
    3A5000 processor integrates 4 64-bit LA464 cores. LA464 is a four-issue 64-bit
    high-performance processor core. It can be used as a single core for high-end
    embedded and desktop applications, or as a basic processor core to form an
    on-chip multi-core system for server and high-performance machine applications.
    
    Documentations:
    ISA:
    https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html
    ABI:
    https://loongson.github.io/LoongArch-Documentation/LoongArch-ELF-ABI-EN.html
    More docs can be found at:
    https://loongson.github.io/LoongArch-Documentation/README-EN.html
    
    Since last year, we have locally adapted two versions of rust, rust1.41 and rust1.57, and completed the test locally.
    I'm not sure if I'm submitting all the patches at once, so I split up the patches and here's one of the commits
    compiler-errors authored Apr 12, 2023
    Configuration menu
    Copy the full SHA
    4a24aab View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#109894 - fleetingbytes:109893-var_os-never-…

    …returns-an-error, r=cuviper
    
    Remove Errors section from var_os docs
    
    Remove `Errors` section from `var_os` documentation, fixes rust-lang#109893
    compiler-errors authored Apr 12, 2023
    Configuration menu
    Copy the full SHA
    8a7a665 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#110000 - reez12g:issue-109878, r=jackh726

    Rename tests/ui/unique to tests/ui/box/unit
    
    fixes rust-lang#109878
    
    Since tests/ui/box already exists, I have temporarily named it boxed-box, but if another name sounds better, please let me know.
    compiler-errors authored Apr 12, 2023
    Configuration menu
    Copy the full SHA
    90b5597 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#110018 - jfgoog:host-and-target-linker, r=w…

    …esleywiser
    
    Pass host linker to compiletest.
    
    Tests marked `// force-host` were using the default linker, even if a custom linker was configured in config.toml.
    
    This change adds a new flag, --host-linker, to compiletest, and renames --linker to --target-linker.
    compiler-errors authored Apr 12, 2023
    Configuration menu
    Copy the full SHA
    e6e46ba View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#110104 - kormosi:todo_typo, r=cuviper

     Reword the docstring in todo! macro definition, fixing a typo
    compiler-errors authored Apr 12, 2023
    Configuration menu
    Copy the full SHA
    4f2f7fd View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#110113 - jyn514:download-rustc-cross, r=alb…

    …ertlarsan68
    
    Fix `x test ui --target foo` when download-rustc is enabled
    
    Previously, we would never build the target std, only the host std:
    
    ```
    ; x t tests/ui/attributes --target wasm32-unknown-unknown
    Building bootstrap
        Finished dev [unoptimized] target(s) in 0.02s
    Building stage0 library artifacts (x86_64-unknown-linux-gnu)
        Finished release [optimized] target(s) in 0.08s
    Building tool compiletest (stage0)
        Finished release [optimized] target(s) in 0.09s
    Check compiletest suite=ui mode=ui (x86_64-unknown-linux-gnu -> wasm32-unknown-unknown)
    thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { depth: 0, inner: Io { path: Some("/home/jyn/src/rust2/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/wasm32-unknown-unknown/lib"), err: Os { code: 2, kind: NotFound, message: "No such file or directory" } } }', src/tools/compiletest/src/main.rs:842:31
    ```
    
    Helps with rust-lang#81930.
    compiler-errors authored Apr 12, 2023
    Configuration menu
    Copy the full SHA
    2f5440c View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#110126 - compiler-errors:new-solver-safe-tr…

    …ansmute, r=oli-obk
    
    Support safe transmute in new solver
    
    Basically copies the same implementation as the old solver, but instead of looking for param types, we look for type or const placeholders.
    compiler-errors authored Apr 12, 2023
    Configuration menu
    Copy the full SHA
    87c9b3f View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#110155 - DaniPopes:rest-typos, r=jyn514

    Fix typos in librustdoc, tools and config files
    
    I used [`typos`](https://github.com/crate-ci/typos) to fix all typos, minus the ones present in rust-lang#110153 and in rust-lang#110154.
    
    Refs rust-lang#110150
    compiler-errors authored Apr 12, 2023
    Configuration menu
    Copy the full SHA
    e697545 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#110162 - notriddle:notriddle/main-js-expand…

    …, r=GuillaumeGomez
    
    rustdoc: remove redundant expandSection code from main.js
    
    This functionality is already tested in `hash-item-expansion.goml`, and was implemented twice:
    
    * First, in code that ran at load time and at hash change: 917cdd2
    
    * Later, the hash change event handler was itself run at load time, and the code handling both cases diverged in implementation, though their behavior still matches pretty well: f66a331
    compiler-errors authored Apr 12, 2023
    Configuration menu
    Copy the full SHA
    d22b019 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#110173 - solid-rs:patch/kmc-solid/socket-re…

    …ad-buf, r=cuviper
    
    kmc-solid: Implement `Socket::read_buf`
    
    Follow-up to rust-lang#108326. Implements `Socket::read_buf` for the [`*-kmc-solid_*`](https://doc.rust-lang.org/nightly/rustc/platform-support/kmc-solid.html) Tier 3 targets.
    compiler-errors authored Apr 12, 2023
    Configuration menu
    Copy the full SHA
    4c9cd9e View commit details
    Browse the repository at this point in the history