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

Merged
merged 24 commits into from
Aug 17, 2021
Merged

Rollup of 10 pull requests #88094

merged 24 commits into from
Aug 17, 2021

Commits on Jul 16, 2021

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

Commits on Aug 3, 2021

  1. Explicit notification of lack of support for rust-docs component for

    Tier 2 targets
    Ali Malik committed Aug 3, 2021
    Configuration menu
    Copy the full SHA
    4ffb1ef View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2021

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

Commits on Aug 13, 2021

  1. Enable --all-targets for x.py check unconditionally

    Now that Cargo deduplicates diagnostics from different targets, this doesn't flood the console with
    duplicate errors.
    
    Note that this doesn't add `--all-targets` in `Builder::cargo` directly because `impl Step for Std`
    actually wants to omit `--all-targets` the first time while it's still building libtest.
    
    When passed `--all-targets`, this warns that the option isn't needed, but still continues to compile.
    jyn514 committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    c6f4eed View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2021

  1. Assign FIXMEs to me and remove obsolete ones

    Also fixed capitalization of documentation
    fee1-dead committed Aug 14, 2021
    Configuration menu
    Copy the full SHA
    f25d2bd View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2021

  1. Update redox_syscall

    The currently pinned version doesn't compile with the latest rustc nightly
    bjorn3 authored Aug 15, 2021
    Configuration menu
    Copy the full SHA
    856dd71 View commit details
    Browse the repository at this point in the history
  2. Update RELEASES.md for 1.55.0

    Co-authored-by: Eric Huss <eric@huss.org>
    Co-authored-by: inquisitivecrystal <22333129+inquisitivecrystal@users.noreply.github.com>
    Co-authored-by: Mark Rousskov <mark.simulacrum@gmail.com>
    Co-authored-by: Daniel Giger <danielg3432@gmail.com>
    5 people committed Aug 15, 2021
    Configuration menu
    Copy the full SHA
    0455fe3 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2021

  1. Configuration menu
    Copy the full SHA
    111201d View commit details
    Browse the repository at this point in the history
  2. Update test output.

    m-ou-se committed Aug 16, 2021
    Configuration menu
    Copy the full SHA
    6431097 View commit details
    Browse the repository at this point in the history
  3. Skip assert ICE with default_method_body_is_const

    functions marked with #[default_method_body_is_const] would
    ICE when being const checked due to it not being a const function:
    `tcx.is_const_fn_raw(did)` returns false. We should skip this assert
    when it is marked with that attribute.
    fee1-dead committed Aug 16, 2021
    Configuration menu
    Copy the full SHA
    ee85704 View commit details
    Browse the repository at this point in the history
  4. Add ui test

    fee1-dead committed Aug 16, 2021
    Configuration menu
    Copy the full SHA
    85abdf0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5e4657d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ee4521e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2f486d5 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#87178 - moxian:rd-use, r=jyn514

    [rustdoc] Copy only item path to clipboard rather than full `use` statement.
    
    The (somewhat) recent addition of the "copy item import to clipboard" button is extremely nice.
    
    However, i tend to write my code with fully qualified paths wherever feasible and only resort to `use` statements as a refactoring pass. This makes the "copy to clipboard" workflow awkward to use, as i would be copy-pasting that as, say
    
    ```rust
    impl use std::ops::Add; for MyType {
    ```
    
    and then go back  and remove the `use ` and `;`.
    
    This PR removes the `use ;` decorations, making it much nicer to use for fully-qualified items. I argue, however, that this does not noticeably degrade experience for those who prefer to import items, since the hard part about those is getting the path right, and writing the `use ;` decoration can be done by hand with little effort.
    m-ou-se authored Aug 16, 2021
    Configuration menu
    Copy the full SHA
    2dbb2f7 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#87677 - amalik18:issue-2788-fix, r=pietroal…

    …bini
    
    Adding explicit notice of lack of documentation for Tier 2 Platforms
    
    Fixing: rust-lang/rustup#2788
    m-ou-se authored Aug 16, 2021
    Configuration menu
    Copy the full SHA
    84ca374 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#87958 - m-ou-se:closure-migration-multispan…

    …-suggestions, r=estebank
    
    Closure migration multispan suggestions
    
    This changes the `rust_2021_incompatible_closure_captures` lint to only suggest inserting the parts that need to be inserted, instead of suggesting to replace the entire closure by an almost identical closure with one statement added.
    
    Before:
    ```
    [...]
    help: add a dummy let to cause `a` to be fully captured
       |
    5  ~     let _ = || {
    6  +         let _ = &a;
    7  +         dbg!(a.0);
    8  +         println!("1");
    9  +         println!("2");
    10 +         println!("3");
     ...
       |
    
    [...]
    help: add a dummy let to cause `b` to be fully captured
       |
    14 |     let _ = || { let _ = &b; dbg!(b.0); };
       |                ~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    [...]
    help: add a dummy let to cause `c` to be fully captured
       |
    16 |     let _ = || { let _ = &c; dbg!(c.0) };
       |                ~~~~~~~~~~~~~~~~~~~~~~~~~
    ```
    
    After:
    ```
    [...]
    help: add a dummy let to cause `a` to be fully captured
       |
    5  ~     let _ = || {
    6  +         let _ = &a;
       |
    
    [...]
    help: add a dummy let to cause `b` to be fully captured
       |
    14 |     let _ = || { let _ = &b; dbg!(b.0); };
       |                  +++++++++++
    
    [...]
    help: add a dummy let to cause `c` to be fully captured
       |
    16 |     let _ = || { let _ = &c; dbg!(c.0) };
       |                +++++++++++++           +
    ```
    m-ou-se authored Aug 16, 2021
    Configuration menu
    Copy the full SHA
    d7df1b1 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#87967 - m-ou-se:non-fmt-panic-detect-fake-s…

    …pans, r=cjgillot
    
    Detect fake spans in non_fmt_panic lint.
    
    This addresses rust-lang#87621
    
    Some proc_macros claim that the user wrote all of the tokens it outputs, by applying a span from the input to all of the produced tokens. That can result in confusing suggestions, as in rust-lang#87621. This is a simple patch that avoids suggesting anything for `panic!("{}")` if the span of `"{}"` and `panic!(..)` are identical, which is normally not possible.
    m-ou-se authored Aug 16, 2021
    Configuration menu
    Copy the full SHA
    beeff04 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#88011 - jyn514:check-all-targets, r=Mark-Si…

    …mulacrum
    
    Enable `--all-targets` for `x.py check` unconditionally
    
    Now that Cargo deduplicates diagnostics from different targets, this doesn't flood the console with
    duplicate errors.
    
    Note that this doesn't add `--all-targets` in `Builder::cargo` directly because `impl Step for Std`
    actually wants to omit `--all-targets` the first time while it's still building libtest.
    
    When passed `--all-targets`, this warns that the option isn't needed, but still continues to compile.
    
    Fixes rust-lang#87846.
    r? ``@Mark-Simulacrum``
    m-ou-se authored Aug 16, 2021
    Configuration menu
    Copy the full SHA
    fe71be7 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#88030 - fee1-dead:fixme, r=oli-obk

    Assign FIXMEs to me and remove obsolete ones
    
    Also fixed capitalization of documentation
    
    We also don't need to transform predicates to be non-const since we basically ignore const predicates in non-const contexts.
    
    r? `````@oli-obk`````
    m-ou-se authored Aug 16, 2021
    Configuration menu
    Copy the full SHA
    fa4edcc View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#88052 - bjorn3:update_redox_syscall, r=Mark…

    …-Simulacrum
    
    Update redox_syscall
    
    The currently pinned version doesn't compile with the latest rustc nightly
    
    cc ``@jackpot51``
    m-ou-se authored Aug 16, 2021
    Configuration menu
    Copy the full SHA
    280ac7f View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#88055 - Mark-Simulacrum:relnotes-1.55, r=Ma…

    …rk-Simulacrum
    
    Update RELEASES.md for 1.55.0
    
    Reopening rust-lang#87624 after some edits and a force-push caused GitHub to close the PR.
    m-ou-se authored Aug 16, 2021
    Configuration menu
    Copy the full SHA
    18a7b6d View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#88080 - fee1-dead:iterator-const, r=oli-obk

    Skip assert ICE with default_method_body_is_const
    
    functions marked with #[default_method_body_is_const] would
    ICE when being const checked due to it not being a const function:
    `tcx.is_const_fn_raw(did)` returns false. We should skip this assert
    when it is marked with that attribute.
    
    r? `@oli-obk`
    m-ou-se authored Aug 16, 2021
    Configuration menu
    Copy the full SHA
    4de53c4 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#88089 - dns2utf8:rustdoc_font_test, r=Guill…

    …aumeGomez
    
    Rustdoc font test
    
     Add a font test based on rust-lang#85669 fixes rust-lang#85632.
    
    r? `@jsha` `@GuillaumeGomez`
    m-ou-se authored Aug 16, 2021
    Configuration menu
    Copy the full SHA
    d5ec5aa View commit details
    Browse the repository at this point in the history