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 #101295

Merged
merged 35 commits into from
Sep 2, 2022
Merged

Rollup of 14 pull requests #101295

merged 35 commits into from
Sep 2, 2022

Commits on Mar 1, 2022

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

Commits on Apr 15, 2022

  1. tidy

    ibraheemdev committed Apr 15, 2022
    Configuration menu
    Copy the full SHA
    c08f460 View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2022

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

Commits on Jul 21, 2022

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

Commits on Aug 26, 2022

  1. Use getuid to check instead of USER env var in rustbuild

    This makes it consistent with `x.py` as changed in rust-lang#95671
    
    Fixes rust-lang#100459
    Samyak2 committed Aug 26, 2022
    Configuration menu
    Copy the full SHA
    b9c47f6 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2022

  1. bootstrap: Add llvm-has-rust-patches target option

    This is so you can check out an upstream commit in src/llvm-project and
    have everything just work.
    tmandry committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    e136e02 View commit details
    Browse the repository at this point in the history
  2. Ignore cargo target folder in src/bootstrap

    Needed after changes in rust-lang#97513.
    tmandry committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    73958fd View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2022

  1. Make docs formulation more consistent for NonZero{int}

    Use third person, as it is used for other std documentation.
    yjhn authored Aug 30, 2022
    Configuration menu
    Copy the full SHA
    de6a3ec View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2022

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

    GuillaumeGomez committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    4304d1d View commit details
    Browse the repository at this point in the history
  3. Add rustdoc GUI test

    GuillaumeGomez committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    b112bfe View commit details
    Browse the repository at this point in the history
  4. Fix bad target name in Walkthrough

    Walkthrough currently say:
    
    ```
    rustup target add aarch_64-fuchsia
    ```
    but should say
    
    ```
    rustup target add aarch64-fuchsia
    ```
    diminishedprime authored Aug 31, 2022
    Configuration menu
    Copy the full SHA
    a928255 View commit details
    Browse the repository at this point in the history
  5. rustdoc: remove unused .docblock .impl-items CSS

    The impl-items list stopped being nested inside a docblock since c1b1d68
    notriddle committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    037a911 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2022

  1. Configuration menu
    Copy the full SHA
    d8b572b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a20318d View commit details
    Browse the repository at this point in the history
  3. Fix filename of armv4t-none-eabi.md

    The filename differed from the link in SUMMARY.md, causing it to 404.
    QuinnPainter authored Sep 1, 2022
    Configuration menu
    Copy the full SHA
    098725c View commit details
    Browse the repository at this point in the history
  4. Fix typo in comment

    aDotInTheVoid committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    c9f4af6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fb14ad0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    68d0094 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    78e9bea View commit details
    Browse the repository at this point in the history
  8. rustdoc: remove unneeded CSS .content table td:first-child > a

    This rule was added in c1c6175 to benefit
    the module items table. However, the module items table stopped using table
    tags when 6020c79 switched us over to grid
    layout.
    notriddle committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    3107133 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#94467 - ibraheemdev:master, r=pnkfelix

    Add `special_module_name` lint
    
    Declaring `lib` as a module is one of the most common beginner mistakes when trying to setup a binary and library target in the same crate. `special_module_name` lints against it, as well as `mod main;`
    ```
    warning: found module declaration for main.rs
      --> $DIR/special_module_name.rs:4:1
       |
    LL | mod main;
       | ^^^^^^^^^
       |
       = note: a binary crate cannot be used as library
    
    warning: found module declaration for lib.rs
      --> $DIR/special_module_name.rs:1:1
       |
    LL | mod lib;
       | ^^^^^^^^
       |
       = note: `#[warn(special_module_name)]` on by default
       = note: lib.rs is the root of this crate's library target
       = help: to refer to it from other targets, use the library's name as the path
       ```
    
    Note that the help message is not the best in that it doesn't provide an example of an import path (`the_actual_crate_name::`), and doesn't check whether the current file is part of a library/binary target to provide more specific error messages. I'm not sure where this lint would have to be run to access that information.
    matthiaskrgr authored Sep 1, 2022
    Configuration menu
    Copy the full SHA
    da1d738 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#100852 - Samyak2:samyak/100459, r=Mark-Simu…

    …lacrum
    
    Use `getuid` to check instead of `USER` env var in rustbuild
    
    This makes it consistent with `x.py` as changed in rust-lang#95671
    
    Fixes rust-lang#100459
    matthiaskrgr authored Sep 1, 2022
    Configuration menu
    Copy the full SHA
    b05f97d View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#101072 - tmandry:llvm-is-vanilla, r=Mark-Si…

    …mulacrum
    
    bootstrap: Add llvm-has-rust-patches target option
    
    This is so you can check out an upstream commit in src/llvm-project and
    have everything just work.
    
    This simplifies the logic in `is_rust_llvm` a bit; it doesn't need to
    check for download-ci-llvm because we would have already errored if both
    that and llvm-config were specified on the host platform.
    matthiaskrgr authored Sep 1, 2022
    Configuration menu
    Copy the full SHA
    1c0561a View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#101190 - yjhn:patch-1, r=Mark-Simulacrum

    Make docs formulation more consistent for NonZero{int}
    
    Use third person, as it is used for other `std` documentation.
    matthiaskrgr authored Sep 1, 2022
    Configuration menu
    Copy the full SHA
    36d0506 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#101245 - GuillaumeGomez:remove-unneeded-whe…

    …re-whitespace, r=notriddle
    
    Remove unneeded where whitespace
    
    It fixes these two bugs:
    
    ![Screenshot from 2022-08-31 18-14-40](https://user-images.githubusercontent.com/3050060/187727950-94657419-abfa-454c-9d27-004280fbcb45.png)
    ![Screenshot from 2022-08-31 18-14-49](https://user-images.githubusercontent.com/3050060/187727956-21d1b39d-62d7-4e7b-8f6f-631ceda67a19.png)
    
    It's a relic from a very old time (this commit: rust-lang@bfd01b7).
    
    You can test the result [here](https://rustdoc.crud.net/imperio/remove-unneeded-where-whitespace/lib2/struct.WhereWhitespace.html).
    
    cc `````````@jsha`````````
    r? `````````@notriddle`````````
    matthiaskrgr authored Sep 1, 2022
    Configuration menu
    Copy the full SHA
    21c8447 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#101251 - diminishedprime:patch-1, r=JohnTitor

    Fix  bad target name in Walkthrough
    
    Walkthrough currently say:
    
    ```
    rustup target add aarch_64-fuchsia
    ```
    but should say
    
    ```
    rustup target add aarch64-fuchsia
    ```
    matthiaskrgr authored Sep 1, 2022
    Configuration menu
    Copy the full SHA
    f6c7c4e View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#101254 - rust-lang:notriddle/remove-even-mo…

    …re-css, r=jsha
    
    rustdoc: remove unused `.docblock .impl-items` CSS
    
    The impl-items list stopped being nested inside a docblock since c1b1d68
    matthiaskrgr authored Sep 1, 2022
    Configuration menu
    Copy the full SHA
    418748f View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#101256 - andrewpollack:fuchsia-docs-adding,…

    … r=tmandry
    
    Fixes/adjustments to Fuchsia doc walkthrough
    
    Small fixes/adjustments missed during rust-lang#100927
    matthiaskrgr authored Sep 1, 2022
    Configuration menu
    Copy the full SHA
    cbcea24 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#101270 - m-ou-se:update-comment, r=joshtrip…

    …lett
    
    Update outdated comment about output capturing in print_to.
    matthiaskrgr authored Sep 1, 2022
    Configuration menu
    Copy the full SHA
    b36fd55 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#101271 - QuinnPainter:patch-1, r=Dylan-DPC

    Fix filename of armv4t-none-eabi.md
    
    The filename differed from the link in SUMMARY.md, causing it to 404.
    matthiaskrgr authored Sep 1, 2022
    Configuration menu
    Copy the full SHA
    754cb2a View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    e9df5dd View commit details
    Browse the repository at this point in the history
  20. Rollup merge of rust-lang#101279 - GuillaumeGomez:doc_auto_cfg_nested…

    …_impl, r=notriddle
    
    Fix doc_auto_cfg for impl blocks in different modules with different `cfg`
    
    Fixes rust-lang#101129.
    
    Just like reexports, impl blocks don't necessarily share the same "space" as the item they implement so we need to merge attributes from its parents as well.
    
    r? `@notriddle`
    matthiaskrgr authored Sep 1, 2022
    Configuration menu
    Copy the full SHA
    8f8a5d2 View commit details
    Browse the repository at this point in the history
  21. Rollup merge of rust-lang#101285 - TaKO8Ki:do-not-suggest-adding-move…

    …-when-closure-is-already-marked-as-move, r=oli-obk
    
    Do not suggest adding `move` to closure when `move` is already used
    
    Fixes rust-lang#101227
    matthiaskrgr authored Sep 1, 2022
    Configuration menu
    Copy the full SHA
    1bafe0b View commit details
    Browse the repository at this point in the history
  22. Rollup merge of rust-lang#101292 - rust-lang:notriddle/rustdoc-table-…

    …first-child, r=GuillaumeGomez
    
    rustdoc: remove unneeded CSS `.content table td:first-child > a`
    
    This rule was added in c1c6175 to benefit the module items table. However, the module items table stopped using table tags when 6020c79 switched us over to grid layout.
    matthiaskrgr authored Sep 1, 2022
    Configuration menu
    Copy the full SHA
    1c12ded View commit details
    Browse the repository at this point in the history