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 14 pull requests #81678

Merged
merged 40 commits into from
Feb 3, 2021
Merged

Rollup of 14 pull requests #81678

merged 40 commits into from
Feb 3, 2021

Commits on Jan 27, 2021

  1. Add big-endian support for AArch64 va_arg

    Amanieu d'Antras authored and Amanieu committed Jan 27, 2021
    Configuration menu
    Copy the full SHA
    8afe598 View commit details
    Browse the repository at this point in the history
  2. Fix ARM and AArch64 calling convention for passing small composite types

    On big-endian the values need to be right-aligned within a 64-bit register, as if the value had been read with a 64-bit load instruction.
    Amanieu d'Antras authored and Amanieu committed Jan 27, 2021
    Configuration menu
    Copy the full SHA
    d53b0a0 View commit details
    Browse the repository at this point in the history
  3. Support AArch64 ILP32 in libunwind bindings

    Amanieu d'Antras authored and Amanieu committed Jan 27, 2021
    Configuration menu
    Copy the full SHA
    06f14df View commit details
    Browse the repository at this point in the history
  4. Support AArch64 big-endian and ILP32 in compiletest

    Amanieu d'Antras authored and Amanieu committed Jan 27, 2021
    Configuration menu
    Copy the full SHA
    a112c4d View commit details
    Browse the repository at this point in the history
  5. Add big-endian and ILP32 AArch64 targets

    Amanieu d'Antras authored and Amanieu committed Jan 27, 2021
    Configuration menu
    Copy the full SHA
    8783d1a View commit details
    Browse the repository at this point in the history
  6. Add new aarch64 targets to platform-support.md

    Amanieu d'Antras authored and Amanieu committed Jan 27, 2021
    Configuration menu
    Copy the full SHA
    69e6326 View commit details
    Browse the repository at this point in the history
  7. Bump LLVM submodule

    Amanieu d'Antras authored and Amanieu committed Jan 27, 2021
    Configuration menu
    Copy the full SHA
    5307230 View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2021

  1. Configuration menu
    Copy the full SHA
    99eeb13 View commit details
    Browse the repository at this point in the history
  2. sys: use process::abort() instead of arch::wasm32::unreachable()

    Rationale:
    
      - `abort()` lowers to `wasm32::unreachable()` anyway.
      - `abort()` isn't `unsafe`.
      - `abort()` matches the comment better.
      - `abort()` avoids confusion by future readers (e.g.
        rust-lang#81527): the naming of wasm's
        `unreachable' instruction is a bit unfortunate because it is not
        related to the `unreachable()` intrinsic (intended to trigger UB).
    
    Codegen is likely to be different since `unreachable()` is `inline`
    while `abort()` is `cold`. Since it doesn't look like we are expecting
    here to trigger this case, the latter seems better anyway.
    
    Signed-off-by: Miguel Ojeda <[email protected]>
    ojeda committed Jan 29, 2021
    Configuration menu
    Copy the full SHA
    c7f4154 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2021

  1. Add doc aliases for "delete"

    This patch adds doc aliases for "delete". The added aliases are
    supposed to reference usages `delete` in other programming
    languages.
    
    - `HashMap::remove`, `BTreeMap::remove` -> `Map#delete` and `delete`
      keyword in JavaScript.
    
    - `HashSet::remove`, `BTreeSet::remove` -> `Set#delete` in JavaScript.
    
    - `mem::drop` -> `delete` keyword in C++.
    
    - `fs::remove_file`, `fs::remove_dir`, `fs::remove_dir_all`
      -> `File#delete` in Java, `File#delete` and `Dir#delete` in Ruby.
    
    Before this change, searching for "delete" in documentation
    returned no results.
    KamilaBorowska committed Jan 31, 2021
    Configuration menu
    Copy the full SHA
    15701f7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    071d227 View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2021

  1. Upgrade Chalk

    jackh726 committed Feb 1, 2021
    Configuration menu
    Copy the full SHA
    4b64bc1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ee5ea24 View commit details
    Browse the repository at this point in the history
  3. Update ui tests

    jesusprubio committed Feb 1, 2021
    Configuration menu
    Copy the full SHA
    9ef24f9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b35d601 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5022ad0 View commit details
    Browse the repository at this point in the history
  6. Fix bug with assert!() calling the wrong edition of panic!().

    The span of `panic!` produced by the `assert` macro did not carry the
    right edition. This changes `assert` to call the right version.
    m-ou-se committed Feb 1, 2021
    Configuration menu
    Copy the full SHA
    ed1de99 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2021

  1. Upgrade libc to 0.2.85

    Amanieu d'Antras authored and Amanieu committed Feb 2, 2021
    Configuration menu
    Copy the full SHA
    c3dedd0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3408c58 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bad0f28 View commit details
    Browse the repository at this point in the history
  4. Fix out of date Scalar documentation

    Scalars can represent integers up to u128, but the docs state otherwise.
    jacob-hughes committed Feb 2, 2021
    Configuration menu
    Copy the full SHA
    07c4eeb View commit details
    Browse the repository at this point in the history
  5. Add better diagnostic for missing where clause

    Previously, it's not clear what exactly should be added in the suggested where clause,
    so this adds an example to demonstrate.
    JulianKnodt committed Feb 2, 2021
    Configuration menu
    Copy the full SHA
    6525671 View commit details
    Browse the repository at this point in the history
  6. Add .editorconfig

    Editorconfig is a lightweight specification that
    helps maintaining consistent coding/formatting style
    accross editors, especially those editors
    that are not explicitly aware of Rust and rustfmt.
    
    https://editorconfig.org/
    vn971 committed Feb 2, 2021
    Configuration menu
    Copy the full SHA
    ae3164e View commit details
    Browse the repository at this point in the history
  7. Update Chalk

    jackh726 committed Feb 2, 2021
    Configuration menu
    Copy the full SHA
    a0622d6 View commit details
    Browse the repository at this point in the history
  8. Update ui tests (nll)

    jesusprubio committed Feb 2, 2021
    Configuration menu
    Copy the full SHA
    c57889b View commit details
    Browse the repository at this point in the history
  9. More associated type tests

    jackh726 committed Feb 2, 2021
    Configuration menu
    Copy the full SHA
    f0a3de6 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#80593 - jackh726:chalk-upgrade, r=nikomatsakis

    Upgrade Chalk
    
    ~~Blocked on rust-lang/chalk#670~~
    ~~Now blocked on rust-lang/chalk#680 and release~~
    
    In addition to the straight upgrade, I also tried to fix some tests by properly returning variables and max universes in the solution. Unfortunately, this actually triggers the same perf problem that rustc traits code runs into in `canonicalizer`. Not sure what the root cause of this problem is, or why it's supposed to be solved in chalk.
    
    r? ```@nikomatsakis```
    jackh726 authored Feb 2, 2021
    Configuration menu
    Copy the full SHA
    c1623a2 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#81260 - vn971:restore-editorconfig, r=Mark-…

    …Simulacrum
    
    Add .editorconfig
    
    This adds a .editorconfig file to rust-lang/rust, matching Clippy's. It's not clear that this will benefit many people, but the cost is low and the rewards are potentially meaningful.
    jackh726 authored Feb 2, 2021
    Configuration menu
    Copy the full SHA
    d91ce83 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#81455 - Amanieu:aarch64_ilp32, r=sanxiyn

    Add AArch64 big-endian and ILP32 targets
    
    This PR adds 3 new AArch64 targets:
    - `aarch64_be-unknown-linux-gnu`
    - `aarch64-unknown-linux-gnu_ilp32`
    - `aarch64_be-unknown-linux-gnu_ilp32`
    
    It also fixes some ABI issues on big-endian ARM and AArch64.
    jackh726 authored Feb 2, 2021
    Configuration menu
    Copy the full SHA
    399c0a8 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#81517 - tmiasko:san-crates, r=Mark-Simulacrum

    Remove remnants of the santizer runtime crates from bootstrap
    jackh726 authored Feb 2, 2021
    Configuration menu
    Copy the full SHA
    71792d8 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#81530 - ojeda:sys-use-abort-instead-of-wasm…

    …32-unreachable, r=Mark-Simulacrum
    
    sys: use `process::abort()` instead of `arch::wasm32::unreachable()`
    
    Rationale:
    
      - `abort()` lowers to `wasm32::unreachable()` anyway.
      - `abort()` isn't `unsafe`.
      - `abort()` matches the comment better.
      - `abort()` avoids confusion by future readers (e.g. rust-lang#81527): the naming of wasm's `unreachable` instruction is a bit unfortunate because it is not related to the `unreachable()` intrinsic (intended to trigger UB).
    
    Codegen is likely to be different since `unreachable()` is `inline` while `abort()` is `cold`. Since it doesn't look like we are expecting here to trigger this case, the latter seems better anyway.
    jackh726 authored Feb 2, 2021
    Configuration menu
    Copy the full SHA
    76be6bb View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#81544 - JulianKnodt:sat_where, r=lcnr

    Add better diagnostic for unbounded Abst. Const
    
    ~~In the case where a generic abst. const requires a trivial where bound: `where TypeWithConst<const_fn(N)>: ,`,
    instead of requiring a where bound, just check that only consts are being substituted in to skip over where check.~~
    
    ~~This is pretty sketchy, but I think it works. Presumably, if there is checking for type bounds added later, it can first check nested requirements, and see if they're satisfied by the current `ParamEnv`.~~
    
    Changed the diagnostic to add a better example, which is more practical than what was previously proposed.
    
    r? ```@lcnr```
    jackh726 authored Feb 2, 2021
    Configuration menu
    Copy the full SHA
    3aed8b1 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#81588 - xfix:delete-doc-alias, r=Mark-Simul…

    …acrum
    
    Add doc aliases for "delete"
    
    This patch adds doc aliases for "delete". The added aliases are supposed to reference usages `delete` in other programming languages.
    
    - `HashMap::remove`, `BTreeMap::remove` -> `Map#delete` and `delete` keyword in JavaScript.
    
    - `HashSet::remove`, `BTreeSet::remove` -> `Set#delete` in JavaScript.
    
    - `mem::drop` -> `delete` keyword in C++.
    
    - `fs::remove_file`, `fs::remove_dir`, `fs::remove_dir_all`-> `File#delete` in Java, `File#delete` and `Dir#delete` in Ruby.
    
    Before this change, searching for "delete" in documentation returned no results.
    jackh726 authored Feb 2, 2021
    Configuration menu
    Copy the full SHA
    d3304c8 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#81603 - ehuss:error-index-build, r=Mark-Sim…

    …ulacrum
    
    rustbuild: Don't build compiler twice for error-index-generator.
    
    When using `--stage=1`, the error-index-generator was forcing the compiler to be built twice.  This isn't necessary; the error-index-generator just needs the same unusual logic that rustdoc uses to build with stage minus one.
    
    `--stage=0` and `--stage=2` should be unaffected by this change.
    
    cc rust-lang#76371
    jackh726 authored Feb 2, 2021
    Configuration menu
    Copy the full SHA
    3b9d77c View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#81634 - jesusprubio:jesusprubio/add-long-ex…

    …planation-e0521, r=GuillaumeGomez
    
    Add long explanation e0521
    
    Helps with rust-lang#61137
    jackh726 authored Feb 2, 2021
    Configuration menu
    Copy the full SHA
    fd4f4ad View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#81636 - LingMan:slice_not_vec, r=petrochenkov

    Directly use `Option<&[T]>` instead of converting from `Option<&Vec<T>>` later on
    
    ```@rustbot``` modify labels +C-cleanup +T-compiler
    jackh726 authored Feb 2, 2021
    Configuration menu
    Copy the full SHA
    86e23cc View commit details
    Browse the repository at this point in the history
  20. Rollup merge of rust-lang#81647 - m-ou-se:assert-2021-fix, r=petroche…

    …nkov
    
    Fix bug with assert!() calling the wrong edition of panic!().
    
    The span of `panic!` produced by the `assert` macro did not carry the right edition. This changes `assert` to call the right version.
    
    Also adds tests for the 2021 edition of panic and assert, that would've caught this.
    jackh726 authored Feb 2, 2021
    Configuration menu
    Copy the full SHA
    7f2eeb1 View commit details
    Browse the repository at this point in the history
  21. Rollup merge of rust-lang#81655 - matsujika:suggest-accessing-field-r…

    …ewording, r=estebank
    
    Improve wording of suggestion about accessing field
    
    Follow-up to rust-lang#81504
    
    The compiler at this moment suggests "you might have meant to use field `b` of type `B`", sounding like it's type `B` which has the field `b`.
    r? ```@estebank```
    jackh726 authored Feb 2, 2021
    Configuration menu
    Copy the full SHA
    7edb3ad View commit details
    Browse the repository at this point in the history
  22. Rollup merge of rust-lang#81665 - jacob-hughes:mir_doc_fix, r=estebank

    Fix out of date `Scalar` documentation
    
    Scalars can represent integers up to `u128`, but the docs state otherwise.
    jackh726 authored Feb 2, 2021
    Configuration menu
    Copy the full SHA
    70d16d5 View commit details
    Browse the repository at this point in the history
  23. Rollup merge of rust-lang#81671 - jackh726:atb-tests, r=estebank

    Add more associated type tests
    
    Closes rust-lang#24159
    Closes rust-lang#37808
    Closes rust-lang#39532
    Closes rust-lang#37883
    
    r? ``@estebank``
    jackh726 authored Feb 2, 2021
    Configuration menu
    Copy the full SHA
    81c64b3 View commit details
    Browse the repository at this point in the history