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 12 pull requests #79369

Closed
wants to merge 174 commits into from

Commits on Oct 4, 2020

  1. split interior_mutable_const tests and clean it

    * remove a 'ERROR' comment from `borrow`
       `Vec<AtomicUsize>` itself is `Freeze` as it holds the atomic in heap
    * remove `ONCE_INIT` from `declare`
       it seems like an artifact from previous spliting
    rail-rain committed Oct 4, 2020
    Configuration menu
    Copy the full SHA
    be81608 View commit details
    Browse the repository at this point in the history
  2. fix a FP in interior_mutable_const

    fix a false positive in two `interior_mutable_const` lints where a constant with enums gets linted
    even if it uses a clearly unfrozen variant. Note that the code uses the MIR interpreter, which
    the author of rust-lang#3962 thought unlikely to be a solution. This might be over-engineering;
    but, I think it's important to be able to work with the 'http' crate (rust-lang#3825).
    rail-rain committed Oct 4, 2020
    Configuration menu
    Copy the full SHA
    f58a169 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2020

  1. Fix vec_box scope error

    camsteffen committed Oct 30, 2020
    Configuration menu
    Copy the full SHA
    7c74d87 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c0d1002 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2020

  1. Configuration menu
    Copy the full SHA
    158bf9a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    343bdb3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ce98468 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a6611de View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2020

  1. Configuration menu
    Copy the full SHA
    89fa373 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c2a769f View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2020

  1. Configuration menu
    Copy the full SHA
    a4acb31 View commit details
    Browse the repository at this point in the history
  2. Readme improvements

    Format lint categories as a table with the default lint level.
    camsteffen committed Nov 4, 2020
    Configuration menu
    Copy the full SHA
    fd8dece View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2020

  1. Add string_from_utf8_as_bytes linter

    Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
    patrickelectric committed Nov 5, 2020
    Configuration menu
    Copy the full SHA
    bc27d14 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f83762b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3424419 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    83e75f9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1e4ce0f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1624b00 View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2020

  1. Configuration menu
    Copy the full SHA
    5f57608 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b7892c6 View commit details
    Browse the repository at this point in the history
  3. Remove needless allow

    ThibsG committed Nov 6, 2020
    Configuration menu
    Copy the full SHA
    8242b2f View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#6294 - giraffate:fix_suggestion_to_add_space_…

    …in_manual_async, r=Manishearth
    
    Fix suggestion to add unneeded space in `manual_async`
    
    Fix a same case as rust-lang/rust-clippy#6247
    
    changelog: Fix suggestion to add unneeded space in `manual_async`
    bors committed Nov 6, 2020
    Configuration menu
    Copy the full SHA
    2ea08e1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5253595 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2020

  1. Auto merge of rust-lang#6272 - camsteffen:unnecesary-lazy-eval-type, …

    …r=llogiq
    
    Fix unnecessary_lazy_eval suggestion applicability
    
    changelog: Fix unnecessary_lazy_eval suggestion applicability when breaking type inference
    
    Fixes rust-lang#6240
    bors committed Nov 7, 2020
    Configuration menu
    Copy the full SHA
    4bbef42 View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#6110 - rail-rain:care_enums_non_copy_const, r…

    …=llogiq
    
    "Respect" enums in `interior_mutable_const`
    
    fixes rust-lang#3962
    fixes rust-lang#3825
    
    Hello,
    
    It might not be a good idea to submit another relatively large PR while I have an opened PR; but, I've finished this anyway. This may be able to wait for months.
    
    Note: the code uses the MIR interpreter, which the author of rust-lang#3962 thought unlikely to be a solution. This might be over-engineering; but, I think it's important to be able to work with the 'http' crate (rust-lang#3825). (And, I don't want to write a MIR visitor)
    
    ---
    
    changelog: fix a false positive in two `interior_mutable_const` lints where a constant with enums gets linted
    even if it uses a clearly unfrozen variant
    bors committed Nov 7, 2020
    Configuration menu
    Copy the full SHA
    694cec1 View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#6134 - patrickelectric:as_utf8, r=llogiq

    Check when `from_utf8` is called from sliced byte array from string
    
    ---
    
    *Please keep the line below*
    changelog: Fix rust-lang#5487: Add linter to check when `from_utf8` is called from sliced byte array from string.
    bors committed Nov 7, 2020
    Configuration menu
    Copy the full SHA
    92ba075 View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#6287 - camsteffen:readme, r=llogiq

    Readme improvements
    
    ~Moved the table of contents up, added an Overview heading.~
    
    ~Made the "All the Clippy Lints" link clearer.~
    
    Formatted the lint categories as a table with the default lint level (instead of saying on/off by default). Tweaked the descriptions.
    
    changelog: Improve Readme
    bors committed Nov 7, 2020
    Configuration menu
    Copy the full SHA
    4aca13f View commit details
    Browse the repository at this point in the history
  5. Auto merge of rust-lang#6298 - JohnTitor:fix-example, r=llogiq

    Fix `await_holding_refcell_ref` examples for clarify
    
    - Remove redundant `()`
    - Fix variable name
    
    changelog: none
    bors committed Nov 7, 2020
    Configuration menu
    Copy the full SHA
    5effc99 View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#6304 - matthiaskrgr:crash_6302, r=llogiq

    FROM_ITER_INSTEAD_OF_COLLECT: avoid unwrapping unconditionally
    
    Fixes rust-lang#6302
    
    changelog: fix unwrap of None when checking libcore with clippy
    bors committed Nov 7, 2020
    Configuration menu
    Copy the full SHA
    c015622 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2020

  1. Auto merge of rust-lang#6301 - alex-700:fix-map-clone, r=matthiaskrgr

    do not trigger map_clone in the case of &mut
    
    fixes rust-lang#6299
    changelog: do not trigger map_clone in the case of &mut
    bors committed Nov 8, 2020
    Configuration menu
    Copy the full SHA
    96d5f45 View commit details
    Browse the repository at this point in the history
  2. Enable empty_loop lint for no_std crates

    We skip the lint if the `loop {}` is in the `#[panic_handler]` as the
    main recommendation we give is to panic, which obviously isn't
    possible in a panic handler.
    
    Signed-off-by: Joe Richey <joerichey@google.com>
    josephlr authored and flip1995 committed Nov 8, 2020
    Configuration menu
    Copy the full SHA
    c6a91df View commit details
    Browse the repository at this point in the history
  3. Update clippy_lints/src/loops.rs

    Fix NITs
    
    Co-authored-by: Philipp Krones <hello@philkrones.com>
    josephlr and flip1995 committed Nov 8, 2020
    Configuration menu
    Copy the full SHA
    3579b7d View commit details
    Browse the repository at this point in the history
  4. Update reference files

    flip1995 committed Nov 8, 2020
    Configuration menu
    Copy the full SHA
    00dee9d View commit details
    Browse the repository at this point in the history
  5. Auto merge of rust-lang#6205 - josephlr:empty-loop2, r=flip1995

    Enable empty_loop lint for no_std crates
    
    Depends on rust-lang#6162. Fixes rust-lang#6161
    
    We skip the lint if the `loop {}` is in the `#[panic_handler]` as the
    main recommendation we give is to panic, which obviously isn't
    possible in a panic handler.
    
    changelog: Enable empty_loop lint for no_std crates
    bors committed Nov 8, 2020
    Configuration menu
    Copy the full SHA
    abfa331 View commit details
    Browse the repository at this point in the history
  6. Add let_underscore_drop

    smoelius committed Nov 8, 2020
    Configuration menu
    Copy the full SHA
    f1f780c View commit details
    Browse the repository at this point in the history
  7. Auto merge of rust-lang#6271 - camsteffen:vec-box-import, r=flip1995

    Fix vec_box scope error
    
    changelog: Fix vec_box suggestion with wrong type scope
    
    Fixes rust-lang#6236
    bors committed Nov 8, 2020
    Configuration menu
    Copy the full SHA
    b1faa7f View commit details
    Browse the repository at this point in the history
  8. Update references

    smoelius committed Nov 8, 2020
    Configuration menu
    Copy the full SHA
    9c6a0b9 View commit details
    Browse the repository at this point in the history
  9. Auto merge of rust-lang#6293 - Urcra:lint-example-fix, r=flip1995

    Fix example used in cargo_common_metadata
    
    The previous example used in `cargo_common_metadata`  included an authors field, even though the comment says it doesn't. And thus doesn't actually demonstrate an example of how the lint fails.
    
    This removes that authors field from the _bad_ example and suggest to fix the _bad_ example by adding the authors field
    
    changelog: Fix example used in `cargo_common_metadata`
    bors committed Nov 8, 2020
    Configuration menu
    Copy the full SHA
    7079de9 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    7c612c1 View commit details
    Browse the repository at this point in the history
  11. Auto merge of rust-lang#6288 - flip1995:changelog_internal, r=matthia…

    …skrgr
    
    Require the `changelog:` entry in the PR body to be modified
    
    r? `@matthiaskrgr`
    
    changelog: none
    bors committed Nov 8, 2020
    Configuration menu
    Copy the full SHA
    040d0ca View commit details
    Browse the repository at this point in the history
  12. Make KNOW_TYPES static

    camsteffen committed Nov 8, 2020
    Configuration menu
    Copy the full SHA
    b099406 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    9cab084 View commit details
    Browse the repository at this point in the history
  14. Auto merge of rust-lang#6267 - camsteffen:or-fun-idx, r=flip1995

    Fix or_fun_call for index operator
    
    changelog: Fix or_fun_call for index operator
    
    Fixes rust-lang#6266
    bors committed Nov 8, 2020
    Configuration menu
    Copy the full SHA
    2067a01 View commit details
    Browse the repository at this point in the history
  15. Update clippy_lints/src/let_underscore.rs

    Co-authored-by: Philipp Krones <hello@philkrones.com>
    smoelius and flip1995 committed Nov 8, 2020
    Configuration menu
    Copy the full SHA
    aa6bf1f View commit details
    Browse the repository at this point in the history
  16. Update clippy_lints/src/let_underscore.rs

    Co-authored-by: Philipp Krones <hello@philkrones.com>
    smoelius and flip1995 committed Nov 8, 2020
    Configuration menu
    Copy the full SHA
    9751cba View commit details
    Browse the repository at this point in the history
  17. Update clippy_lints/src/let_underscore.rs

    Co-authored-by: Philipp Krones <hello@philkrones.com>
    smoelius and flip1995 committed Nov 8, 2020
    Configuration menu
    Copy the full SHA
    8211b59 View commit details
    Browse the repository at this point in the history
  18. Update lints

    smoelius committed Nov 8, 2020
    Configuration menu
    Copy the full SHA
    40d7af5 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    8845f10 View commit details
    Browse the repository at this point in the history
  20. Update references

    smoelius committed Nov 8, 2020
    Configuration menu
    Copy the full SHA
    06e81bb View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2020

  1. Auto merge of rust-lang#6278 - ThibsG:DerefAddrOf, r=llogiq

    Fix bad suggestions for `deref_addrof` and `try_err` lints
    
    Fix bad suggestions when in macro expansion for `deref_addrof` and `try_err` lints.
    
    Fixes: rust-lang#6234
    Fixes: rust-lang#6242
    Fixes: rust-lang#6237
    
    changelog: none
    
    r? `@llogiq`
    bors committed Nov 9, 2020
    Configuration menu
    Copy the full SHA
    d212c38 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4852cca View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#78710 - petrochenkov:macvisit, r=davidtwco

    rustc_ast: Do not panic by default when visiting macro calls
    
    Panicking by default made sense when we didn't have HIR or MIR and everything worked on AST, but now all AST visitors run early and majority of them have to deal with macro calls, often by ignoring them.
    
    The second commit renames `visit_mac` to `visit_mac_call`, the corresponding structures were renamed earlier in rust-lang#69589.
    Dylan-DPC committed Nov 9, 2020
    Configuration menu
    Copy the full SHA
    6294300 View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#6305 - smoelius:master, r=flip1995

    Add `let_underscore_drop`
    
    This line generalizes `let_underscore_lock` (rust-lang#5101) to warn about any initializer expression that implements `Drop`.
    
    So, for example, the following would generate a warning:
    ```rust
    struct Droppable;
    impl Drop for Droppable {
        fn drop(&mut self) {}
    }
    let _ = Droppable;
    ```
    
    I tried to preserve the original `let_underscore_lock` functionality in the sense that the warning generated for
    ```rust
    let _ = mutex.lock();
    ```
    should be unchanged.
    
    *Please keep the line below*
    changelog: Add lint [`let_underscore_drop`]
    bors committed Nov 9, 2020
    Configuration menu
    Copy the full SHA
    dd826b4 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2020

  1. Configuration menu
    Copy the full SHA
    3ea6f77 View commit details
    Browse the repository at this point in the history
  2. Run cargo dev fmt

    ebroto committed Nov 10, 2020
    Configuration menu
    Copy the full SHA
    effcb52 View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#6319 - ebroto:rustup, r=ebroto

    Rustup
    
    changelog: none
    
    r? `@ghost`
    bors committed Nov 10, 2020
    Configuration menu
    Copy the full SHA
    467bf95 View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#6303 - ThibsG:OptionOptionSerde, r=ebroto

    Remove `allow` in `option_option` lint test
    
    As it is not triggering locally anymore, I propose to remove `#[allow(clippy::option_option)]` from the test.
    
    The goal is also to see what happens on CI.
    
    closes: rust-lang#4298
    
    changelog: none
    bors committed Nov 10, 2020
    Configuration menu
    Copy the full SHA
    d0858d0 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2020

  1. Configuration menu
    Copy the full SHA
    7690944 View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#6269 - camsteffen:map-clone-deref, r=ebroto

    Fix map_clone with deref and clone
    
    changelog: Fix map_clone false positive with deref coercion
    
    Fixes rust-lang#6239
    bors committed Nov 11, 2020
    Configuration menu
    Copy the full SHA
    c4fc076 View commit details
    Browse the repository at this point in the history
  3. Added a lint as suggested in 6010 which recommends using contains()

    instead of `find()` follows by `is_some()` on strings
    
    Update clippy_lints/src/find_is_some_on_strs.rs
    Co-authored-by: Takayuki Nakata <f.seasons017@gmail.com>
    
    Update clippy_lints/src/methods/mod.rs
    Co-authored-by: Philipp Krones <hello@philkrones.com>
    rsulli55 committed Nov 11, 2020
    Configuration menu
    Copy the full SHA
    a1cf2d3 View commit details
    Browse the repository at this point in the history
  4. Moved the tests for lint search_is_some to new files

    `search_is_some.rs` and `search_is_some_fixable.rs`
    rsulli55 committed Nov 11, 2020
    Configuration menu
    Copy the full SHA
    431fcbc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    55dc822 View commit details
    Browse the repository at this point in the history
  6. Remove to_string on msg

    Co-authored-by: Philipp Krones <hello@philkrones.com>
    rsulli55 and flip1995 committed Nov 11, 2020
    Configuration menu
    Copy the full SHA
    e9612f3 View commit details
    Browse the repository at this point in the history
  7. Remove borrow

    Co-authored-by: Philipp Krones <hello@philkrones.com>
    rsulli55 and flip1995 committed Nov 11, 2020
    Configuration menu
    Copy the full SHA
    fb74b48 View commit details
    Browse the repository at this point in the history
  8. Added period back to lint search_is_some and ran

    `update-all-references.sh`
    rsulli55 committed Nov 11, 2020
    Configuration menu
    Copy the full SHA
    ee1b959 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    fd30313 View commit details
    Browse the repository at this point in the history
  10. Update clippy_lints/src/methods/mod.rs

    Co-authored-by: Philipp Krones <hello@philkrones.com>
    rsulli55 and flip1995 committed Nov 11, 2020
    Configuration menu
    Copy the full SHA
    56d252c View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    5c1c50e View commit details
    Browse the repository at this point in the history
  12. Fix typo in comment

    occurences -> occurrences
    eltociear committed Nov 11, 2020
    Configuration menu
    Copy the full SHA
    f92f8d0 View commit details
    Browse the repository at this point in the history
  13. Implement destructuring assignment for structs and slices

    Co-authored-by: varkor <github@varkor.com>
    fanzier and varkor committed Nov 11, 2020
    Configuration menu
    Copy the full SHA
    5f310d9 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    5f64867 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    d569696 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2020

  1. Auto merge of rust-lang#78782 - petrochenkov:nodoctok, r=Aaron1011

    Do not collect tokens for doc comments
    
    Doc comment is a single token and AST has all the information to re-create it precisely.
    Doc comments are also responsible for majority of calls to `collect_tokens` (with `num_calls == 1` and `num_calls == 0`, cc rust-lang#78736).
    
    (I also moved token collection into `fn parse_attribute` to deduplicate code a bit.)
    
    r? `@Aaron1011`
    bors committed Nov 12, 2020
    Configuration menu
    Copy the full SHA
    92ece84 View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#6325 - flip1995:rustup, r=flip1995

    Rustup
    
    r? `@ghost`
    
    changelog: none
    bors committed Nov 12, 2020
    Configuration menu
    Copy the full SHA
    bd13a35 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    084b0da View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#78836 - fanzier:struct-and-slice-destructur…

    …ing, r=petrochenkov
    
    Implement destructuring assignment for structs and slices
    
    This is the second step towards implementing destructuring assignment (RFC: rust-lang/rfcs#2909, tracking issue: rust-lang#71126). This PR is the second part of rust-lang#71156, which was split up to allow for easier review.
    
    Note that the first PR (rust-lang#78748) is not merged yet, so it is included as the first commit in this one. I thought this would allow the review to start earlier because I have some time this weekend to respond to reviews. If ``@petrochenkov`` prefers to wait until the first PR is merged, I totally understand, of course.
    
    This PR implements destructuring assignment for (tuple) structs and slices. In order to do this, the following *parser change* was necessary: struct expressions are not required to have a base expression, i.e. `Struct { a: 1, .. }` becomes legal (in order to act like a struct pattern).
    
    Unfortunately, this PR slightly regresses the diagnostics implemented in rust-lang#77283. However, it is only a missing help message in `src/test/ui/issues/issue-77218.rs`. Other instances of this diagnostic are not affected. Since I don't exactly understand how this help message works and how to fix it yet, I was hoping it's OK to regress this temporarily and fix it in a follow-up PR.
    
    Thanks to ``@varkor`` who helped with the implementation, particularly around the struct rest changes.
    
    r? ``@petrochenkov``
    m-ou-se committed Nov 12, 2020
    Configuration menu
    Copy the full SHA
    3a648ff View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2020

  1. Fix dogfood test

    giraffate committed Nov 13, 2020
    Configuration menu
    Copy the full SHA
    c6b74df View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#6329 - giraffate:sync-from-rust, r=matthiaskrgr

    Rustup
    
    changelog: none
    bors committed Nov 13, 2020
    Configuration menu
    Copy the full SHA
    cf7b4b0 View commit details
    Browse the repository at this point in the history
  3. update clippy test ouput

    vn-ki committed Nov 13, 2020
    Configuration menu
    Copy the full SHA
    7987f39 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2020

  1. Auto merge of rust-lang#6320 - giraffate:fix_suggestion_in_manual_ran…

    …ge_contains_using_float, r=llogiq
    
    Fix suggestion in `manual_range_contains` when using float
    
    Fix rust-lang#6315
    
    changelog: Fix suggestion in `manual_range_contains` when using float
    bors committed Nov 14, 2020
    Configuration menu
    Copy the full SHA
    408b615 View commit details
    Browse the repository at this point in the history
  2. Add underscore expressions for destructuring assignments

    Co-authored-by: varkor <github@varkor.com>
    fanzier and varkor committed Nov 14, 2020
    Configuration menu
    Copy the full SHA
    864e554 View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#78809 - vn-ki:fix-issue-76064, r=oli-obk

    add error_occured field to ConstQualifs,
    
    fix rust-lang#76064
    
    I wasn't sure what `in_return_place` actually did and not sure why it returns `ConstQualifs` while it's sibling functions return `bool`. So I tried to make as minimal changes to the structure as possible. Please point out whether I have to refactor it or not.
    
    r? `@oli-obk`
    cc `@RalfJung`
    bors committed Nov 14, 2020
    Configuration menu
    Copy the full SHA
    0c7a48c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cbb6b1c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1b55cc7 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2020

  1. Rollup merge of rust-lang#79016 - fanzier:underscore-expressions, r=p…

    …etrochenkov
    
    Make `_` an expression, to discard values in destructuring assignments
    
    This is the third and final step towards implementing destructuring assignment (RFC: rust-lang/rfcs#2909, tracking issue: rust-lang#71126). This PR is the third and final part of rust-lang#71156, which was split up to allow for easier review.
    
    With this PR, an underscore `_` is parsed as an expression but is allowed *only* on the left-hand side of a destructuring assignment. There it simply discards a value, similarly to the wildcard `_` in patterns. For instance,
    ```rust
    (a, _) = (1, 2)
    ```
    will simply assign 1 to `a` and discard the 2. Note that for consistency,
    ```
    _ = foo
    ```
    is also allowed and equivalent to just `foo`.
    
    Thanks to ````@varkor```` who helped with the implementation, particularly around pre-expansion gating.
    
    r? ````@petrochenkov````
    jonas-schievink committed Nov 15, 2020
    Configuration menu
    Copy the full SHA
    27a1572 View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#6334 - flip1995:rustup, r=flip1995

    Rustup
    
    r? `@ghost`
    
    changelog: none
    bors committed Nov 15, 2020
    Configuration menu
    Copy the full SHA
    db04641 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2020

  1. Add rustfmt::skip as a work around

    because comments are checked and removed by rustfmt for some reason
    giraffate committed Nov 16, 2020
    Configuration menu
    Copy the full SHA
    0e80341 View commit details
    Browse the repository at this point in the history
  2. Auto merge of rust-lang#6336 - giraffate:sync-from-rust, r=flip1995

    Rustup
    
    changelog: none
    bors committed Nov 16, 2020
    Configuration menu
    Copy the full SHA
    df3bb58 View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#6119 - rsulli55:find_is_some_on_strs, r=flip1995

    Add a case to `lint_search_is_some` to handle searching strings
    
    Fixes: rust-lang#6010
    
    This adds a lint which recommends using `contains()` instead of `find()` followed by `is_some()` on strings as suggested in rust-lang#6010.
    
    This was added as an additional case to
    https://github.com/rust-lang/rust-clippy/blob/5af88e3c2d8cc4fb74a0e455381669930ee3a31a/clippy_lints/src/methods/mod.rs#L3037
    
    I would really appreciate any comments/suggestions for my code!
    
    changelog: Added case to `lint_search_is_some` to handle searching strings
    bors committed Nov 16, 2020
    Configuration menu
    Copy the full SHA
    ad4f829 View commit details
    Browse the repository at this point in the history
  4. clippy: fold by value

    lcnr committed Nov 16, 2020
    Configuration menu
    Copy the full SHA
    3567ea5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5b8f2b6 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2020

  1. Auto merge of rust-lang#78779 - LeSeulArtichaut:ty-visitor-return, r=…

    …oli-obk
    
    Introduce `TypeVisitor::BreakTy`
    
    Implements MCP rust-lang/compiler-team#383.
    r? `@ghost`
    cc `@lcnr` `@oli-obk`
    
    ~~Blocked on FCP in rust-lang/compiler-team#383.~~
    bors committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    a467c51 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a7ac441 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    750c118 View commit details
    Browse the repository at this point in the history
  4. Fix lint example

    hkmatsumoto committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    0335b8d View commit details
    Browse the repository at this point in the history
  5. Add test cases

    hkmatsumoto committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    0e9d227 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ebdd4e2 View commit details
    Browse the repository at this point in the history
  7. Optout rustfix test

    hkmatsumoto committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    6a62390 View commit details
    Browse the repository at this point in the history
  8. Fix typo

    Co-authored-by: Philipp Krones <hello@philkrones.com>
    hkmatsumoto and flip1995 committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    3ed8902 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c775856 View commit details
    Browse the repository at this point in the history
  10. Run rustfmt

    hkmatsumoto committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    a433d46 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    cdb72df View commit details
    Browse the repository at this point in the history
  12. Add test case

    hkmatsumoto committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    6b55f3f View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    df0d565 View commit details
    Browse the repository at this point in the history
  14. Update clippy_lints/src/unnecessary_wrap.rs

    Co-authored-by: Philipp Krones <hello@philkrones.com>
    hkmatsumoto and flip1995 committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    eec7f5c View commit details
    Browse the repository at this point in the history
  15. Improve lint message

    hkmatsumoto committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    1bdac87 View commit details
    Browse the repository at this point in the history
  16. Run cargo dev fmt

    hkmatsumoto committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    8392bc7 View commit details
    Browse the repository at this point in the history
  17. Make lint skip closures

    hkmatsumoto committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    2f85aa7 View commit details
    Browse the repository at this point in the history
  18. Add support for methods

    hkmatsumoto committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    12474c6 View commit details
    Browse the repository at this point in the history
  19. Make lint skip macros

    hkmatsumoto committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    c5447eb View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    c7692cf View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    30632fb View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    e998d61 View commit details
    Browse the repository at this point in the history
  23. Remove wildcard use

    hkmatsumoto committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    9d96311 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    532d205 View commit details
    Browse the repository at this point in the history
  25. Fix clippy error

    hkmatsumoto committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    bf46f78 View commit details
    Browse the repository at this point in the history
  26. Update stderr files

    hkmatsumoto committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    86331a4 View commit details
    Browse the repository at this point in the history
  27. Update stderr files

    hkmatsumoto committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    4c8d248 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    4e5c02e View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    1f577c0 View commit details
    Browse the repository at this point in the history
  30. Pluralize lint name

    hkmatsumoto committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    c7445d7 View commit details
    Browse the repository at this point in the history
  31. Run cargo dev fmt

    flip1995 committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    bf2d31d View commit details
    Browse the repository at this point in the history
  32. Auto merge of rust-lang#6338 - flip1995:rustup, r=flip1995

    Rustup
    
    r? `@ghost`
    
    changelog: none
    bors committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    a8cafc6 View commit details
    Browse the repository at this point in the history
  33. Auto merge of rust-lang#6337 - ThibsG:FixIce6332, r=Manishearth

    Remove `expect()` calls to avoid ICEs in `deref_addrof` lint
    
    Fixes: rust-lang#6332
    
    changelog: none
    bors committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    5464cbe View commit details
    Browse the repository at this point in the history
  34. Fix handling of panic calls

    This should make Clippy more resilient and will unblock rust-lang#78343.
    
    This PR is made against rust-lang/rust to avoid the need for a subtree
    sync at @flip1995's suggestion in rust-lang/rust-clippy#6310.
    camelid committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    4e4c4fb View commit details
    Browse the repository at this point in the history
  35. Auto merge of rust-lang#6070 - matsujika:unnecessary_wrap, r=flip1995

    Add new lint `unnecessary_wrap`
    
    Fixes rust-lang#5969
    
    changelog: New lint [`unnecessary_wraps`]
    bors committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    44d9445 View commit details
    Browse the repository at this point in the history
  36. Improve doc about map_clone

    giraffate committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    0502ac2 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2020

  1. Auto merge of rust-lang#6340 - giraffate:improve_doc_for_map_clone, r…

    …=Manishearth
    
    Improve doc about `map_clone`
    
    A follow up of rust-lang/rust-clippy#6239 (comment).
    
    `map_clone` works with not only `Iterator` but `Option` although not written in [doc](https://rust-lang.github.io/rust-clippy/master/#map_clone). Also, an example in the doc shows  a usage of dereferencing, but this isn't also written.
    
    changelog: Improve doc about `map_clone`
    bors committed Nov 18, 2020
    Configuration menu
    Copy the full SHA
    8c2e2fd View commit details
    Browse the repository at this point in the history
  2. Revert "Add rustfmt::skip as a work around"

    This reverts commit 0e80341.
    
    Fixed by rust-lang/rustfmt#4528.
    giraffate committed Nov 18, 2020
    Configuration menu
    Copy the full SHA
    6494bd0 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#79145 - camelid:clippy-fix-panics, r=flip1995

    Fix handling of panic calls
    
    This should make Clippy more resilient and will unblock rust-lang#78343.
    
    This PR is made against rust-lang/rust to avoid the need for a subtree
    sync at ``@flip1995's`` suggestion in rust-lang/rust-clippy#6310.
    
    r? ``@flip1995``
    cc ``@m-ou-se``
    m-ou-se committed Nov 18, 2020
    Configuration menu
    Copy the full SHA
    577ebc8 View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2020

  1. Auto merge of rust-lang#6345 - giraffate:follow_up_of_rustup, r=flip1995

    Revert "Add `rustfmt::skip` as a work around"
    
    This reverts commit 0e80341.
    
    Fixed by rustfmt v1.4.27 available in the latest nightly (2020-11-18). Refer to rust-lang/rustfmt#4528.
    
    changelog: none
    bors committed Nov 19, 2020
    Configuration menu
    Copy the full SHA
    b2aefb8 View commit details
    Browse the repository at this point in the history
  2. Add CHANGELOG for 1.48

    flip1995 committed Nov 19, 2020
    Configuration menu
    Copy the full SHA
    4bf58bd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a98acdb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e9afdf0 View commit details
    Browse the repository at this point in the history
  5. Remove the clippy::panic-params lint.

    Rustc itself now warns for all cases that triggered this lint.
    m-ou-se committed Nov 19, 2020
    Configuration menu
    Copy the full SHA
    78faaef View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    113c147 View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2020

  1. Configuration menu
    Copy the full SHA
    dd4e471 View commit details
    Browse the repository at this point in the history
  2. Fix dogfood errors

    flip1995 committed Nov 20, 2020
    Configuration menu
    Copy the full SHA
    5ee0a40 View commit details
    Browse the repository at this point in the history
  3. Auto merge of rust-lang#6351 - flip1995:rustup, r=flip1995

    Rustup
    
    r? `@ghost`
    
    changelog: none
    bors committed Nov 20, 2020
    Configuration menu
    Copy the full SHA
    8325d48 View commit details
    Browse the repository at this point in the history
  4. Auto merge of rust-lang#6347 - flip1995:changelog, r=Manishearth

    Changelog Rust 1.48
    
    [Rendered](https://github.com/flip1995/rust-clippy/blob/changelog/CHANGELOG.md)
    
    This changelog is **big**. Hacktoberfest was pretty good for us, even though we had too few reviewers.
    
    changelog: none
    bors committed Nov 20, 2020
    Configuration menu
    Copy the full SHA
    70ffebf View commit details
    Browse the repository at this point in the history
  5. Revert "Convert the await holding lints to correctness"

    This reverts commit d8c6bce.
    Daniel Smith committed Nov 20, 2020
    Configuration menu
    Copy the full SHA
    8b21241 View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#6354 - Daniel-B-Smith:refcell_ref_await, r=fl…

    …ip1995
    
    Downgrade the await holding lints from correctness
    
    We found a false positive in these lints (see rust-lang/rust-clippy#6353 for more details). As a short-term mitigation, this downgrades the lints from correctness to limit the noise.
    
    changelog: downgrade AWAIT_HOLDING_REFCELL_REF and AWAIT_HOLDING_LOCK to pedantic. From rustup earlier, where I forgot the changlog: deprecate [`panic_params`] (uplifted)
    bors committed Nov 20, 2020
    Configuration menu
    Copy the full SHA
    0402c6a View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2020

  1. a typo

    typo
    oliver committed Nov 22, 2020
    Configuration menu
    Copy the full SHA
    9b910e1 View commit details
    Browse the repository at this point in the history
  2. update

    oliver committed Nov 22, 2020
    Configuration menu
    Copy the full SHA
    e30bb76 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6667c66 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    27af650 View commit details
    Browse the repository at this point in the history
  5. Auto merge of rust-lang#6364 - o752d:master, r=flip1995

    revisiting a typo
    
    changelog: none
    bors committed Nov 22, 2020
    Configuration menu
    Copy the full SHA
    4284ec3 View commit details
    Browse the repository at this point in the history
  6. Auto merge of rust-lang#6363 - o752d:patch-2, r=flip1995

    a typo
    
    typo
    
    changelog: none
    bors committed Nov 22, 2020
    Configuration menu
    Copy the full SHA
    831aa96 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    034244f View commit details
    Browse the repository at this point in the history
  8. Apply suggestions from code review to change "that" to "which"

    Co-authored-by: oliver <16816606+o752d@users.noreply.github.com>
    carols10cents and oliver committed Nov 22, 2020
    Configuration menu
    Copy the full SHA
    445466e View commit details
    Browse the repository at this point in the history
  9. Auto merge of rust-lang#6361 - integer32llc:doc-style, r=carols10cents

    Small grammar, punctuation, and code style improvements to docs
    
    changelog: Made small grammar, punctuation, and code style improvements to docs
    
    I recently found some places in rust-lang/rust that had lists without spaces after commas, which led me to look for more places, which led me over here to find:
    
    - Some similar lists in code examples that could use spaces after commas to be idiomatic Rust style
    - Some lists in documentation text that didn't have spaces after commas, needed an Oxford comma (fight me), or were otherwise misformatted
    - Some other grammar improvements in the area of the other changes
    
    These changes should only be in user-facing documentation or output.
    bors committed Nov 22, 2020
    Configuration menu
    Copy the full SHA
    3e7c6de View commit details
    Browse the repository at this point in the history
  10. Make fold_item_recur non-nullable

    This gets rid of a bunch of `unwrap()`s and makes it a little more clear
    what's going on.
    
    Originally I wanted to make `fold_item` non-nullable too, which would
    have been a lot nicer to work with, but unfortunately `stripper` does
    actually return `None` in some places. I might make a follow-up moving
    stripper to be special and not a pass so that passes can be
    non-nullable.
    jyn514 committed Nov 22, 2020
    Configuration menu
    Copy the full SHA
    ab1e634 View commit details
    Browse the repository at this point in the history
  11. Get rid of doctree::Impl

    jyn514 committed Nov 22, 2020
    Configuration menu
    Copy the full SHA
    0043fc9 View commit details
    Browse the repository at this point in the history
  12. Accept '!' in intra-doc links

    This will allow linking to things like `Result<T, !>`.
    camelid committed Nov 22, 2020
    Configuration menu
    Copy the full SHA
    0b6537a View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2020

  1. Allow using -Z fewer-names=no to retain value names

    Change `-Z fewer-names` into an optional boolean flag and allow using it
    to either discard value names when true or retain them when false,
    regardless of other settings.
    tmiasko committed Nov 23, 2020
    Configuration menu
    Copy the full SHA
    fafe3cd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dfac9be View commit details
    Browse the repository at this point in the history
  3. Fix ICE in utils::implements_trait

    This only happend when debug_assertions were enabled in rustc
    flip1995 committed Nov 23, 2020
    Configuration menu
    Copy the full SHA
    99b9459 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c5c3d7b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8526c31 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9c8db45 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    fcbe638 View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2020

  1. Allow disabling TrapUnreachable via -Ztrap-unreachable=no

    This is useful for embedded targets where small code size is desired.
    For example, on my project (thumbv7em-none-eabi) this yields a 0.6% code size reduction.
    Dirbaio committed Nov 24, 2020
    Configuration menu
    Copy the full SHA
    7b62e09 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#78953 - mzohreva:mz/from_raw_fd, r=Mark-Sim…

    …ulacrum
    
    Add Metadata in std::os::fortanix_sgx::io::FromRawFd
    
    Needed for fortanix/rust-sgx#291
    
    cc `@jethrogb`
    Dylan-DPC committed Nov 24, 2020
    Configuration menu
    Copy the full SHA
    04db18d View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#79038 - CDirkx:move-ui-tests, r=dtolnay

    Change ui test that are run-pass and that do not test the compiler to library tests
    
    Part of rust-lang#76268, these are some of the relevant ui tests I found that can be replaced by library tests.
    
    Note: this PR just moves the tests, I have not checked for any overlap between these tests and existing library tests. The only test I changed is `env_home_dir`, where I added code to restore the old home dir after testing.
    
    All moved tests:
    
    | ui test | library test file | test |
    | --- | --- | --- |
    | `const\ascii_ctype.rs` | `core\tests\ascii.rs` | `ascii_ctype_const` |
    | `const\const-str-ptr.rs` | `alloc\tests\str.rs` | `const_str_ptr` |
    | `assert-eq-trailing-comma.rs` | `core\tests\macros.rs` | `assert_eq_trailing_comma` |
    | `assert-escape.rs` | `core\tests\macros.rs` | `assert_escape` |
    | `assert-ne-trailing-comma.rs` | `core\tests\macros.rs` | `assert_ne_trailing_comma` |
    | `atomic-access-bool.rs` | `core\tests\atomic.rs` | `atomic_access_bool` |
    | `atomic-alignment.rs` | `core\tests\atomic.rs` | `atomic_alignment` |
    | `atomic-compare_exchange.rs` | `core\tests\atomic.rs` | `atomic_compare_exchange` |
    | ~~`atomic-print.rs`~~ | ~~`std\tests\process.rs`~~ | ~~`atomic_print`~~ |
    | `bool.rs` | `core\tests\bool.rs` | `test_bool` |
    | `bool_not.rs` | `core\tests\bool.rs` | `test_bool_not` |
    | `char_unicode.rs` | `core\tests\unicode.rs` | `version` |
    | `cmp-default.rs` | `core\tests\cmp.rs` | `cmp_default` |
    | `deref-mut-on-ref.rs` | `core\tests\ops.rs` | `deref_mut_on_ref` |
    | `deref-on-ref.rs` | `core\tests\ops.rs` | `deref_on_ref` |
    | `env-home-dir.rs` | `std\tests\env.rs` | `env_home_dir` |
    | ~~`env-vars.rs`~~ | ~~`std\tests\env.rs`~~ | ~~`env_vars`~~ |
    | `extend-for-unit.rs` | `core\tests\iter.rs` | `extend_for_unit` |
    | `offset_from.rs` | `core\tests\ptr.rs` | `offset_from` |
    | `option-ext.rs` | `core\tests\option.rs` | `option_ext` |
    | `result-opt-conversions.rs` | `core\tests\result.rs` | `result_opt_conversions` |
    | `sleep.rs` | `std\tests\thread.rs` | `sleep` |
    | ~~`try-wait.rs`~~ | ~~`std\tests\process.rs`~~ | ~~`try_wait`~~ |
    | `utf8.rs` | `alloc\tests\str.rs` | `utf8` |
    | `utf8_chars.rs` | `alloc\tests\str.rs` | `utf8_chars` |
    | `wrapping-int-api.rs` | `core\tests\num\wrapping.rs` | `wrapping_int_api` |
    Dylan-DPC committed Nov 24, 2020
    Configuration menu
    Copy the full SHA
    21b3fc0 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#79228 - flip1995:clippyup, r=oli-obk

    Update Clippy
    
    Biweekly Clippy update
    
    r? `@Manishearth`
    Dylan-DPC committed Nov 24, 2020
    Configuration menu
    Copy the full SHA
    f7875d3 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#79294 - petrochenkov:determ, r=varkor

    resolve: Do not put macros into `module.unexpanded_invocations` unless necessary
    
    Macro invocations in modules <sup>(*)</sup> need to be tracked because they can produce named items when expanded.
    We cannot give definite answer to queries like "does this module declare name `n`?" until all macro calls in that module are expanded.
    
    Previously we marked too many macros as potentially producing named items.
    E.g. in this example
    ```rust
    mod m {
        const C: u32 = line!();
    }
    ```
    `line!()` cannot emit any items into module `m`, but it was still marked.
    This PR fixes that and marks macro calls as "unexpanded in module" only if they can actually emit named items into that module.
    
    Diagnostics in UI test outputs have different order now because this change affects macro expansion order.
    
    <sup>*</sup> Any containers for named items are called modules in resolve (that includes blocks, traits and enums in addition to `mod` items).
    Dylan-DPC committed Nov 24, 2020
    Configuration menu
    Copy the full SHA
    8c315c6 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#79310 - jyn514:fold-item-cleanup, r=Guillau…

    …meGomez
    
    Make `fold_item_recur` non-nullable
    
    This gets rid of a bunch of `unwrap()`s and makes it a little more clear
    what's going on.
    
    Originally I wanted to make `fold_item` non-nullable too, which would
    have been a lot nicer to work with, but unfortunately `stripper` does
    actually return `None` in some places. I might make a follow-up moving
    stripper to be special and not a pass so that passes can be
    non-nullable.
    
    Found while working on rust-lang#76998.
    Dylan-DPC committed Nov 24, 2020
    Configuration menu
    Copy the full SHA
    e6349ac View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#79312 - jyn514:doctree-impl, r=GuillaumeGomez

    Get rid of `doctree::Impl`
    
    Follow-up to rust-lang#79264, continues breaking up rust-lang#78082. At some point I want to introduce `MaybeInlined`, but I think I'll wait until I need `MaybeInlined::InlinedWithOriginal` because it's not very useful in other situations.
    
    r? `@GuillaumeGomez`
    Dylan-DPC committed Nov 24, 2020
    Configuration menu
    Copy the full SHA
    5b492c9 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#79321 - camelid:intra-doc-bang, r=Manishearth

    Accept '!' in intra-doc links
    
    This will allow linking to things like `Result<T, !>`.
    
    *See <https://github.com/rust-lang/rust/pull/77832#discussion_r528409079>.*
    
    r? `@jyn514`
    Dylan-DPC committed Nov 24, 2020
    Configuration menu
    Copy the full SHA
    9a05fd6 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#79346 - tmiasko:more-names, r=jonas-schievink

    Allow using `-Z fewer-names=no` to retain value names
    
    Change `-Z fewer-names` into an optional boolean flag and allow using it
    to either discard value names when true or retain them when false,
    regardless of other settings.
    Dylan-DPC committed Nov 24, 2020
    Configuration menu
    Copy the full SHA
    f013b4d View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#79351 - Takashiidobe:keyword-docs-typo, r=m…

    …-ou-se
    
    Fix typo in `keyword` docs for traits
    
    This PR fixes a small typo in the `keyword_docs.rs` file, describing the differences between the 2015 and 2018 editions of traits.
    Dylan-DPC committed Nov 24, 2020
    Configuration menu
    Copy the full SHA
    1361d74 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#79354 - ssomers:btree_bereave_BoxedNode, r=…

    …Mark-Simulacrum
    
    BTreeMap: cut out the ceremony around BoxedNode
    
    The opposite direction of rust-lang#79093.
    
    r? `@Mark-Simulacrum`
    Dylan-DPC committed Nov 24, 2020
    Configuration menu
    Copy the full SHA
    a8c1597 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#79358 - ssomers:btree_public_comments, r=Ma…

    …rk-Simulacrum
    
    BTreeMap/BTreeSet: make public doc more consistent
    
    Tweaks rust-lang#72876 and rust-lang#73667 and propagate them to `BTreeSet`.
    Dylan-DPC committed Nov 24, 2020
    Configuration menu
    Copy the full SHA
    0e7ce1e View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#79367 - Dirbaio:trap-unreachable, r=jonas-s…

    …chievink
    
    Allow disabling TrapUnreachable via -Ztrap-unreachable=no
    
    Currently this is only possible by defining a custom target, which is quite unwieldy.
    
    This is useful for embedded targets where small code size is desired. For example, on my project (thumbv7em-none-eabi) this yields a 0.6% code size reduction: 132892 bytes -> 132122 bytes (770 bytes down).
    Dylan-DPC committed Nov 24, 2020
    Configuration menu
    Copy the full SHA
    e5a4e14 View commit details
    Browse the repository at this point in the history