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 6 pull requests #89858

Merged
merged 12 commits into from
Oct 14, 2021
Merged

Rollup of 6 pull requests #89858

merged 12 commits into from
Oct 14, 2021

Commits on Oct 11, 2021

  1. Use shallow clones for submodules

    This reduces the amount of git history downloaded from ~67M to ~11M.
    jyn514 committed Oct 11, 2021
    Configuration menu
    Copy the full SHA
    9177fa3 View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2021

  1. suggestion for typoed crate or module

    avoid suggesting the same name
    
    sort candidates
    
    fix a message
    
    use `opt_def_id` instead of `def_id`
    
    move `find_similarly_named_module_or_crate` to rustc_resolve/src/diagnostics.rs
    TaKO8Ki committed Oct 13, 2021
    Configuration menu
    Copy the full SHA
    f819e6d View commit details
    Browse the repository at this point in the history
  2. Assemble the compiler when running x.py build

    Previously, there was no way to actually get binaries in
    `build/$TARGET/stage1/bin` without building the standard library. This
    makes it possible to build just the compiler. This can be useful when
    the standard library isn't actually necessary for trying out your tests
    (e.g. a bug that can be reproduced with only a `no_core` crate).
    jyn514 committed Oct 13, 2021
    Configuration menu
    Copy the full SHA
    31265c6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cf905ed View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    21429ed View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a0cc872 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#89347 - TaKO8Ki:crate-or-module-typo, r=est…

    …ebank
    
    suggestion for typoed crate or module
    
    Previously, the compiler didn't suggest similarly named crates or modules. This pull request adds a suggestion for typoed crates or modules.
    
    rust-lang#76208
    
    before:
    
    ```
    error[E0433]: failed to resolve: use of undeclared type or module `chono`
     --> src/main.rs:2:5
      |
    2 | use chono::prelude::*;
      |     ^^^^^ use of undeclared type or module `chono`
    ```
    
    after:
    
    ```
    error[E0433]: failed to resolve: use of undeclared type or module `chono`
     --> src/main.rs:2:5
      |
    2 | use chono::prelude::*;
      |     ^^^^^
      |     |
      |     use of undeclared crate or module `chono`
      |     help: a similar crate or module exists: `chrono`
    ```
    matthiaskrgr authored Oct 13, 2021
    Configuration menu
    Copy the full SHA
    efac68b View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#89670 - yoshuawuyts:available-parallelism-d…

    …ocs, r=joshtriplett
    
    Improve `std::thread::available_parallelism` docs
    
    _Tracking issue: https://github.com/rust-lang/rust/issues/74479_
    
    This PR reworks the documentation of `std::thread::available_parallelism`, as requested [here](rust-lang#89324 (comment)).
    
    ## Changes
    
    The following changes are made:
    
    - We've removed prior mentions of "hardware threads" and instead centers the docs around "parallelism" as a resource available to a program.
    - We now provide examples of when `available_parallelism` may return numbers that differ from the number of CPU cores in the host machine.
    - We now mention that the amount of available parallelism may change over time.
    - We make note of which platform components we don't take into account which more advanced users may want to take note of.
    - The example has been updated, which should be a bit easier to use.
    - We've added a docs alias to `num-cpus` which provides similar functionality to `available_parallelism`, and is one of the most popular crates on crates.io.
    
    ---
    
    Thanks!
    
    r? `@BurntSushi`
    matthiaskrgr authored Oct 13, 2021
    Configuration menu
    Copy the full SHA
    06110c0 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#89757 - jyn514:submodule, r=Mark-Simulacrum

    Use shallow clones for submodules
    
    This reduces the amount of git history downloaded for submodules from ~67M to ~11M. For comparison, a shallow clone of rust-lang/rust is 103M and a deep clone is 740M, so this almost halves the amount of history necessary if you made a shallow clone to start, and it's a significant reduction even if not.
    
    Closes rust-lang#63978. r? `@Mark-Simulacrum`
    matthiaskrgr authored Oct 13, 2021
    Configuration menu
    Copy the full SHA
    9f0ef18 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#89759 - jyn514:x-build-assemble, r=Mark-Sim…

    …ulacrum
    
    Assemble the compiler when running `x.py build`
    
    Previously, there was no way to actually get binaries in
    `build/$TARGET/stage1/bin` without building the standard library. This
    makes it possible to build just the compiler. This can be useful when
    the standard library isn't actually necessary for trying out your tests
    (e.g. a bug that can be reproduced with only a `no_core` crate).
    
    Closes rust-lang#73519.
    matthiaskrgr authored Oct 13, 2021
    Configuration menu
    Copy the full SHA
    204bd6e View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#89846 - esp-rs:riscv-esp-idf-changelog, r=M…

    …ark-Simulacrum
    
    Add `riscv32imc-esp-espidf` to 1.56 changelog
    matthiaskrgr authored Oct 13, 2021
    Configuration menu
    Copy the full SHA
    03638f1 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#89853 - cuviper:release-1.56, r=Mark-Simula…

    …crum
    
    Update the 1.56.0 release header for consistency
    matthiaskrgr authored Oct 13, 2021
    Configuration menu
    Copy the full SHA
    a624eef View commit details
    Browse the repository at this point in the history