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

Merged
merged 100 commits into from
Jan 18, 2021
Merged

Rollup of 12 pull requests #81165

merged 100 commits into from
Jan 18, 2021

Commits on Dec 17, 2020

  1. Add Roadmap for 2021

    flip1995 committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    c06793b View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2020

  1. Configuration menu
    Copy the full SHA
    469281c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    83a458a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    275988c View commit details
    Browse the repository at this point in the history

Commits on Dec 30, 2020

  1. Configuration menu
    Copy the full SHA
    af480a6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0afe2db View commit details
    Browse the repository at this point in the history
  3. Address review comments

    phansch committed Dec 30, 2020
    Configuration menu
    Copy the full SHA
    b81111b View commit details
    Browse the repository at this point in the history

Commits on Dec 31, 2020

  1. Fix blessing of test output in subdirectories

    The core issue was the usage of `reference_file_path.file_name()`, which
    provided a non-existent path if the file to be updated was in a
    subdirectory.
    
    Instead we have to provide the whole path after 'tests/ui/' as the
    'filename'. This part of the path is called `test_name` in the code now.
    phansch committed Dec 31, 2020
    Configuration menu
    Copy the full SHA
    6b37932 View commit details
    Browse the repository at this point in the history
  2. s/test_dir/test_suite_dir

    This should make the code slightly more understandable
    phansch committed Dec 31, 2020
    Configuration menu
    Copy the full SHA
    6909055 View commit details
    Browse the repository at this point in the history

Commits on Jan 1, 2021

  1. field_reassign_with_default: don't expand macros in suggestion

    fixes #6522
    
    changelog: field_reassign_with_default: don't expand macros in lint suggestion (#6522)
    matthiaskrgr committed Jan 1, 2021
    Configuration menu
    Copy the full SHA
    5d48b91 View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2021

  1. Configuration menu
    Copy the full SHA
    ba4bf4f View commit details
    Browse the repository at this point in the history
  2. Add lint

    Jarcho committed Jan 2, 2021
    Configuration menu
    Copy the full SHA
    1853f8b View commit details
    Browse the repository at this point in the history
  3. Auto merge of #6520 - phansch:update-changelog, r=flip1995

    Update CHANGELOG for Rust 1.50
    
    changelog: none
    
    r? `@flip1995`
    bors committed Jan 2, 2021
    Configuration menu
    Copy the full SHA
    78f6009 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    053afe4 View commit details
    Browse the repository at this point in the history
  5. Fix clone_on_copy test

    Jarcho committed Jan 2, 2021
    Configuration menu
    Copy the full SHA
    9427e03 View commit details
    Browse the repository at this point in the history
  6. Fix lint errors

    Jarcho committed Jan 2, 2021
    Configuration menu
    Copy the full SHA
    d37ee6f View commit details
    Browse the repository at this point in the history
  7. Auto merge of #6531 - matthiaskrgr:6522, r=ebroto

    field_reassign_with_default: don't expand macros in suggestion
    
    fixes #6522
    
    changelog: field_reassign_with_default: don't expand macros in lint suggestion (#6522)
    bors committed Jan 2, 2021
    Configuration menu
    Copy the full SHA
    592f7eb View commit details
    Browse the repository at this point in the history
  8. Auto merge of #6518 - ThibsG:CopyException, r=ebroto

    Ensure `Copy` exception in trait definition for `wrong_self_conventio…
    
    Add a test case to ensure `Copy` exception is preserved also in trait definition, when passing `self` by value.
    
    Follow up of #6316
    
    changelog: none
    bors committed Jan 2, 2021
    Configuration menu
    Copy the full SHA
    a02806e View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2021

  1. Fix docs: use type inference

    Jarcho committed Jan 3, 2021
    Configuration menu
    Copy the full SHA
    7b5f549 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2021

  1. Auto merge of #6525 - phansch:fix-bless-in-subdirs, r=flip1995

    Fix blessing of test output in subdirectories
    
    The core issue was the usage of `reference_file_path.file_name()`, which
    provided a non-existent path if the file to be updated was in a
    subdirectory.
    
    Instead we have to provide the whole path after 'tests/ui/' as the
    'filename'. This part of the path is called `test_name` in the code now.
    
    changelog: none
    bors committed Jan 4, 2021
    Configuration menu
    Copy the full SHA
    8951916 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d141cdc View commit details
    Browse the repository at this point in the history
  3. collapsible_if: split collapsible_else_if into its own lint so we can…

    … enable/disable it particularly
    
    This splits up clippy::collapsible_if into collapsible_if for
    if x {
      if y { }
    }
    =>
    if x && y { }
    
    and collapsible_else_if for
    
    if x {
    } else {
     if y { }
    }
    
    =>
    if x {
    
    } else if y {
    
    }
    
    so that we can lint for only the latter but not the first if we desire.
    
    changelog: collapsible_if: split up linting for if x {} else { if y {} } into collapsible_else_if lint
    matthiaskrgr committed Jan 4, 2021
    Configuration menu
    Copy the full SHA
    6dcec6a View commit details
    Browse the repository at this point in the history
  4. Auto merge of #6544 - matthiaskrgr:else_if, r=flip1995

    collapsible_if: split collapsible_else_if into its own lint so we can enable/disable it particularly
    
    This splits up clippy::collapsible_if into collapsible_if for
    if x {
      if y { }
    }
    =>
    if x && y { }
    
    and collapsible_else_if for
    
    if x {
    } else {
     if y { }
    }
    
    =>
    if x {
    
    } else if y {
    
    }
    
    so that we can lint for only the latter but not the first if we desire.
    
    changelog: collapsible_if: split up linting for if x {} else { if y {} } into collapsible_else_if lint
    bors committed Jan 4, 2021
    Configuration menu
    Copy the full SHA
    dd1929e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ba87acb View commit details
    Browse the repository at this point in the history
  6. Auto merge of #6507 - bengsparks:lint/issue6410, r=flip1995

    Needless Question Mark Lint
    
    Fixes #6410, i.e the needless question mark lint
    
    changelog: [`needless_question_mark`] New lint
    bors committed Jan 4, 2021
    Configuration menu
    Copy the full SHA
    ae9ae97 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7acfa44 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    cbbb188 View commit details
    Browse the repository at this point in the history
  9. Auto merge of #6548 - camsteffen:bless-internal, r=flip1995

    Add ui-internal to cargo dev bless
    
    changelog: internal
    bors committed Jan 4, 2021
    Configuration menu
    Copy the full SHA
    445eb99 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    bc97f5d View commit details
    Browse the repository at this point in the history
  11. Run cargo dev fmt

    nahuakang committed Jan 4, 2021
    Configuration menu
    Copy the full SHA
    a8d47b4 View commit details
    Browse the repository at this point in the history
  12. Auto merge of #6538 - Jarcho:vec_init_then_push, r=llogiq

    New lint: vec_init_then_push
    
    fixes: #1483
    
    This will trigger on `new`, `default`, and `with_capacity` when the given capacity is less than or equal to the number of push calls. Is there anything else this should trigger on?
    
    changelog: Added lint: `vec_init_then_push`
    bors committed Jan 4, 2021
    Configuration menu
    Copy the full SHA
    976850b View commit details
    Browse the repository at this point in the history
  13. Add a new lint ptr_as_ptr,

    which checks for `as` casts between raw pointers
    without changing its mutability
    and suggest replacing it with `pointer::cast`.
    rail-rain committed Jan 4, 2021
    Configuration menu
    Copy the full SHA
    4b478a5 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    dfa5d7e View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2021

  1. Auto merge of #6547 - camsteffen:curse-outdated, r=phansch

    Curse outdated test output
    
    changelog: internal
    
    Change `cargo dev bless` to only include test output that was generated since the last build of clippy. This is especially useful when running tests with `TESTNAME=...`. The feature may be disabled by `cargo dev bless --ignore-timestamp`.
    bors committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    dd52066 View commit details
    Browse the repository at this point in the history
  2. Auto merge of #6513 - nahuakang:fix/empty_enum_lint_never_type, r=fli…

    …p1995
    
    Fix: Empty enum never type suggested only if the feature is enabled
    
    This PR addresses [Issue 6422](rust-lang/rust-clippy#6422). Instead of always recommending `never type` for empty enums, Clippy would only recommend [the lint](https://rust-lang.github.io/rust-clippy/master/index.html#empty_enum) if [LatePass.TyCtxt](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/ty/context/struct.TyCtxt.html) has `features().never_type` enabled.
    
    - \[ ] Followed [lint naming conventions][lint_naming]
    - \[x] Added passing UI tests (including committed `.stderr` file)
    - \[x] `cargo test` passes locally
    - \[x] Executed `cargo dev update_lints`
    - \[x] Added lint documentation
    - \[x] Run `cargo dev fmt`
    ---
    
    *Please write a short comment explaining your change (or "none" for internal only changes)*
    changelog: Only trigger [`empty_enum`] lint if `never_type` feature is enabled.
    bors committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    311186b View commit details
    Browse the repository at this point in the history
  3. Auto merge of #6542 - rail-rain:ptr_as_ptr, r=flip1995

    Add a new lint `ptr_as_ptr`
    
    This PR adds a new lint `ptr_as_ptr` which checks for `as` casts between raw pointers without changing its mutability and suggest replacing it with `pointer::cast`. Closes #5890.
    
    Open question: should this lint be `pedantic` or `style`? I set it `pedantic` for now because the original post suggests using it, but I think the lint also fits well to `style`.
    
    ---
    
    changelog: New lint `ptr_as_ptr`
    bors committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    a6b72d3 View commit details
    Browse the repository at this point in the history
  4. Tiny Symbol cleanup

    * Renames `sym.rs` to `sym_helper.rs` so that the `sym as rustc_sym` is no longer needed.
    * Removes one needless `symbol` from a path
    phansch committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    ea885d9 View commit details
    Browse the repository at this point in the history
  5. Auto merge of #6551 - phansch:tiny-symbol-cleanup, r=flip1995

    Tiny Symbol cleanup
    
    * Renames `sym.rs` to `sym_helper.rs` so that the `sym as rustc_sym` is no longer needed.
    * Removes one needless `symbol` from a path
    
    changelog: none
    bors committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    42b9e92 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a8825e9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    92f2bbb View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2021

  1. Auto merge of #6553 - phansch:field-reassign-with-default-macros, r=f…

    …lip1995
    
    Fix derive and macro related false positives in `field_reassign_with_default`
    
    Closes #6545
    
    changelog: Fix derive and macro related false positives in [`field_reassign_with_default`]
    bors committed Jan 6, 2021
    Configuration menu
    Copy the full SHA
    efccfe8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8a45ffa View commit details
    Browse the repository at this point in the history
  3. Auto merge of #6554 - sozysozbot:master, r=flip1995

    Fix typo: `which which can be` -> `which can be`
    
    Fixed a typo in the explanation of https://rust-lang.github.io/rust-clippy/master/index.html#large_types_passed_by_value : `which which can be` -> `which can be`
    
    changelog: none
    bors committed Jan 6, 2021
    Configuration menu
    Copy the full SHA
    8e5c5a6 View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2021

  1. Configuration menu
    Copy the full SHA
    f50ded0 View commit details
    Browse the repository at this point in the history
  2. Change env var used for testing Clippy

    This changes the variable used for testing Clippy in the internal test
    suite:
    
    ```
    CLIPPY_TESTS -> __CLIPPY_INTERNAL_TESTS
    ```
    
    `CLIPPY_TESTS` is understandably used in environments of Clippy users,
    so we shouldn't use it in our test suite.
    flip1995 committed Jan 7, 2021
    Configuration menu
    Copy the full SHA
    547ce0d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2b3c0ad View commit details
    Browse the repository at this point in the history
  4. Auto merge of #6558 - stanislav-tkach:patch-2, r=flip1995

    Fix typo: `irrevelent` -> `irrelevant`
    
    changelog: none
    bors committed Jan 7, 2021
    Configuration menu
    Copy the full SHA
    e15bef9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7d42172 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    aa9adbf View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2021

  1. Configuration menu
    Copy the full SHA
    0e14a75 View commit details
    Browse the repository at this point in the history
  2. Move is_hir_ty_cfg_dependant to util,

    add stuff on pointer::cast` to the document for `cast_ptr_alignment`
    and fix line numbers in the test.
    rail-rain committed Jan 8, 2021
    Configuration menu
    Copy the full SHA
    ee9b47d View commit details
    Browse the repository at this point in the history
  3. Auto merge of #6566 - giraffate:reduce_the_span_in_from_over_into, r=…

    …Manishearth
    
    Reduce the span in `from_over_into` to impl header
    
    A follow up of rust-lang/rust-clippy#6476 (comment)
    > That item might be quite large. We may want to reduce the span to the `impl` header.
    
    changelog: none
    bors committed Jan 8, 2021
    Configuration menu
    Copy the full SHA
    2950c8e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    24c700b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    121c65f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    76ccfb4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    cc26919 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7871eba View commit details
    Browse the repository at this point in the history
  9. Auto merge of #6569 - camsteffen:symbol-comparison, r=Manishearth

    Internal lint symbol comparisons
    
    changelog: none
    
    * Added awareness of `rustc_span::symbol::kw::*` symbols.
    * Compare with const symbols: `symbol.as_str() == "self"` => `symbol == kw::SelfLower`
    * Don't compare symbols by string: `a.as_str() == b.as_str()` => `a == b`
    * Lint comparing with `to_ident_string` or `to_string` instead of `Symbol::as_str`.
    bors committed Jan 8, 2021
    Configuration menu
    Copy the full SHA
    68bcd20 View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2021

  1. Configuration menu
    Copy the full SHA
    8a6fea4 View commit details
    Browse the repository at this point in the history
  2. Auto merge of #6571 - ThibsG:BoxedLocalTrait, r=phansch

    Fix FP for `boxed_local` lint in default trait fn impl
    
    Fix FP on default trait function implementation on `boxed_local` lint.
    
    Maybe I checked too much when looking if `self` is carrying `Self` in its bound type.
    I can't find a good test case for this, so it could be too much conservative.
    Let me know if you think only detecting `self` parameter is enough.
    
    Fixes: #4804
    
    changelog: none
    bors committed Jan 9, 2021
    Configuration menu
    Copy the full SHA
    ee0598e View commit details
    Browse the repository at this point in the history
  3. Auto merge of #6565 - giraffate:small_fixes_of_doc_in_needless_questi…

    …on_mark, r=phansch
    
    Small fixes of doc in `needless_question_mark`
    
    changelog: none
    bors committed Jan 9, 2021
    Configuration menu
    Copy the full SHA
    583715f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9e45a23 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2021

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

Commits on Jan 11, 2021

  1. Auto merge of #6575 - flip1995:stop_linting_deps, r=Manishearth

    Change env var used for testing Clippy
    
    This changes the variable used for testing Clippy in the internal test
    suite:
    
    ```
    CLIPPY_TESTS -> __CLIPPY_INTERNAL_TESTS
    ```
    
    `CLIPPY_TESTS` is understandably used in environments of Clippy users,
    so we shouldn't use it in our test suite.
    
    changelog: Fix oversight which caused Clippy to lint deps in some environments.
    
    Once again fixes rust-lang/rust-clippy#3874
    bors committed Jan 11, 2021
    Configuration menu
    Copy the full SHA
    1eed27f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    53f8731 View commit details
    Browse the repository at this point in the history
  3. Auto merge of #6557 - rail-rain:extending_cast_ptr_alignment, r=phansch

    Catch `pointer::cast` too in `cast_ptr_alignment`
    
    Fixes #4708
    
    Although there were some discussion in the issue, this PR implements the original feature. I think `cast_ptr_alignment` should exist as it is, separated from `ptr_as_ptr`.
    
    ---
    
    changelog: Extend `cast_ptr_alignment` lint for the `pointer::cast` method
    bors committed Jan 11, 2021
    Configuration menu
    Copy the full SHA
    7f4599a View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2021

  1. Auto merge of #6462 - flip1995:roadmap, r=flip1995,llogiq,killercup,M…

    …anishearth,oli-obk,matthiaskrgr,phansch,mikerite,mcarton,yaahc,ebroto
    
    Roadmap for 2021
    
    [Rendered](https://github.com/flip1995/rust-clippy/blob/roadmap/doc/roadmap-2021.md)
    
    This is the first time Clippy gets its own roadmap. The reason for this roadmap is, that with the Rust language growing, also Clippy is growing. With this keeping track of and implementing bigger projects gets quite hard. This roadmap should help in exactly this regard.
    
    After having the approval of this roadmap by the Clippy team, we want to know from the community:
    
    - What do you think in general about this roadmap?
    - Are there any pain points in Clippy, that should be included here?
    - What of the points listed here has the highest priority for you?
    
    We're looking forward to getting your feedback!
    
    changelog: Add roadmap for Clippy 2021
    
    r? `@rust-lang/clippy`
    bors committed Jan 12, 2021
    Configuration menu
    Copy the full SHA
    13ca5c8 View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2021

  1. Configuration menu
    Copy the full SHA
    ea02849 View commit details
    Browse the repository at this point in the history
  2. Separate out a hir::Impl struct

    This makes it possible to pass the `Impl` directly to functions, instead
    of having to pass each of the many fields one at a time. It also
    simplifies matches in many cases.
    jyn514 committed Jan 13, 2021
    Configuration menu
    Copy the full SHA
    dfb41f4 View commit details
    Browse the repository at this point in the history
  3. Auto merge of #6584 - giraffate:make_references_to_issues_links, r=ll…

    …ogiq
    
    Make a reference a link in doc
    
    I think it's incovenient that references in doc are just a text.
    
    changelog: none
    bors committed Jan 13, 2021
    Configuration menu
    Copy the full SHA
    00586df View commit details
    Browse the repository at this point in the history
  4. Auto merge of #77524 - Patryk27:fixes/66228, r=estebank

    Rework diagnostics for wrong number of generic args (fixes #66228 and #71924)
    
    This PR reworks the `wrong number of {} arguments` message, so that it provides more details and contextual hints.
    bors committed Jan 13, 2021
    Configuration menu
    Copy the full SHA
    dcd8c8e View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2021

  1. Auto merge of #79328 - c410-f3r:hir-if, r=matthewjasper

    Reintroduce hir::ExprKind::If
    
    Basically copied and paste #59288/rust-lang/rust-clippy#4080 with some modifications.
    
    The vast majority of tests were fixed and now there are only a few remaining. Since I am still unable to figure out the missing pieces, any help with the following list is welcome.
    
    - [ ] **Unnecessary `typeck` exception**: [Cheated on this one to make CI green.](https://github.com/rust-lang/rust/pull/79328/files#diff-3faee9ba23fc54a12b7c43364ba81f8c5660045c7e1d7989a02a0cee1c5b2051)
    - [x] **Incorrect span**: [Span should reference `then` and `else` separately.](https://github.com/rust-lang/rust/pull/79328/files#diff-cf2c46e82222ee4b1037a68fff8a1af3c4f1de7a6b3fd798aacbf3c0475abe3d)
    - [x] **New note regarding `assert!`**: [Modified but not "wrong". Maybe can be a good thing?](https://github.com/rust-lang/rust/pull/79328/files#diff-9e0d7c89ed0224e2b62060c957177c27db43c30dfe3c2974cb6b5091cda9cfb5)
    - [x] **Inverted report location**: [Modified but not "wrong". Locations were inverted.](https://github.com/rust-lang/rust/pull/79328/files#diff-f637ce7c1f68d523a165aa9651765df05e36c4d7d279194b1a6b28b48a323691)
    - [x] **`src/test/ui/point-to-type-err-cause-on-impl-trait-return.rs` has weird errors**: [Not sure why this is happening.](https://github.com/rust-lang/rust/pull/79328/files#diff-c823c09660f5b112f95e97e8ff71f1797b6c7f37dbb3d16f8e98bbaea8072e95)
    - [x] **Missing diagnostic**: [???](https://github.com/rust-lang/rust/pull/79328/files#diff-6b8ab09360d725ba4513933827f9796b42ff9522b0690f80b76de067143af2fc)
    bors committed Jan 14, 2021
    Configuration menu
    Copy the full SHA
    7b3af41 View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2021

  1. Configuration menu
    Copy the full SHA
    9bd037d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0c5ba9a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f18cf82 View commit details
    Browse the repository at this point in the history
  4. Auto merge of #6586 - flip1995:rustup, r=flip1995

    Rustup
    
    r? `@ghost`
    
    changelog: FP fix: [`needless_return`] no longer triggers inside macros.
    bors committed Jan 15, 2021
    Configuration menu
    Copy the full SHA
    953f024 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3e236b3 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2021

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

Commits on Jan 17, 2021

  1. Initialize a few variables directly

    Currently they are declared as `mut`, get initialized to a default value, and
    then possibly overwritten.
    
    By initializing to the final value directly, they don't need to be `mut` and
    it's clear that they don't get mutated elsewhere later on.
    LingMan committed Jan 17, 2021
    Configuration menu
    Copy the full SHA
    0a74e17 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    428f948 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9111e9d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c7bad7b View commit details
    Browse the repository at this point in the history
  5. Update cmp.rs

    Fixed space
    sirh3e committed Jan 17, 2021
    Configuration menu
    Copy the full SHA
    7276b6c View commit details
    Browse the repository at this point in the history
  6. Add track_caller to .steal()

    Before:
    
    ```
    thread 'rustc' panicked at 'attempt to read from stolen value', /home/joshua/rustc/compiler/rustc_data_structures/src/steal.rs:43:15
    ```
    
    After:
    
    ```
    thread 'rustc' panicked at 'attempt to steal from stolen value', compiler/rustc_mir/src/transform/mod.rs:423:25
    ```
    jyn514 committed Jan 17, 2021
    Configuration menu
    Copy the full SHA
    394d701 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    514543a View commit details
    Browse the repository at this point in the history
  8. Edit rustc_middle::ty::cast docs

    Link to RFC 401 and add missing punctuation.
    pierwill committed Jan 17, 2021
    Configuration menu
    Copy the full SHA
    34debb6 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2021

  1. Replace let Some(..) = with .is_some()

    Signed-off-by: wcampbell <wcampbell1995@gmail.com>
    wcampbell0x2a committed Jan 18, 2021
    Configuration menu
    Copy the full SHA
    e23acc3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d5570c2 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of #81038 - flip1995:clippyup, r=Manishearth

    Update Clippy
    
    Biweekly Clippy update
    
    r? ``@Manishearth``
    KodrAus committed Jan 18, 2021
    Configuration menu
    Copy the full SHA
    090ab8c View commit details
    Browse the repository at this point in the history
  4. Rollup merge of #81071 - osa1:fix_81006, r=estebank

    rustc_parse_format: Fix character indices in find_skips
    
    Fixes #81006
    KodrAus committed Jan 18, 2021
    Configuration menu
    Copy the full SHA
    c7ca540 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d3ff9ac View commit details
    Browse the repository at this point in the history
  6. Rollup merge of #81105 - LingMan:init_directly, r=nagisa

    Initialize a few variables directly
    
    Currently they are declared as `mut`, get initialized to a default value, and
    then possibly overwritten.
    
    By initializing to the final value directly, they don't need to be `mut` and
    it's clear that they don't get mutated elsewhere later on.
    KodrAus committed Jan 18, 2021
    Configuration menu
    Copy the full SHA
    b4defec View commit details
    Browse the repository at this point in the history
  7. Rollup merge of #81116 - bugadani:body-span, r=wesleywiser

    ConstProp: Copy body span instead of querying it
    KodrAus committed Jan 18, 2021
    Configuration menu
    Copy the full SHA
    064e47b View commit details
    Browse the repository at this point in the history
  8. Rollup merge of #81121 - tmiasko:simplify-cfg-no-dbg, r=jonas-schievink

    Avoid logging the whole MIR body in SimplifyCfg
    KodrAus committed Jan 18, 2021
    Configuration menu
    Copy the full SHA
    e1d70bc View commit details
    Browse the repository at this point in the history
  9. Rollup merge of #81123 - sirh3e:sirh3e-patch-1, r=sfackler

    Update cmp.rs
    
    Fixed space
    KodrAus committed Jan 18, 2021
    Configuration menu
    Copy the full SHA
    0654e20 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of #81125 - jyn514:track-caller, r=lcnr

    Add track_caller to .steal()
    
    Before:
    
    ```
    thread 'rustc' panicked at 'attempt to read from stolen value', /home/joshua/rustc/compiler/rustc_data_structures/src/steal.rs:43:15
    ```
    
    After:
    
    ```
    thread 'rustc' panicked at 'attempt to steal from stolen value', compiler/rustc_mir/src/transform/mod.rs:423:25
    ```
    
    r? `@lcnr`
    KodrAus committed Jan 18, 2021
    Configuration menu
    Copy the full SHA
    f82100e View commit details
    Browse the repository at this point in the history
  11. Rollup merge of #81128 - RalfJung:validation-testing, r=oli-obk

    validation test: turn some const_err back into validation failures
    
    This resolves the problem I raised at #78407 (comment).
    r? `@oli-obk`
    KodrAus committed Jan 18, 2021
    Configuration menu
    Copy the full SHA
    8f1716c View commit details
    Browse the repository at this point in the history
  12. Rollup merge of #81131 - pierwill:edit-rustc_middle-cast, r=varkor

    Edit rustc_middle::ty::cast docs
    
    Link to RFC 401 and add missing punctuation.
    KodrAus committed Jan 18, 2021
    Configuration menu
    Copy the full SHA
    d3cc598 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of #81142 - wcampbell0x2a:replace-Some-with-is-some, r=j…

    …onas-schievink
    
    Replace let Some(..) = with .is_some()
    KodrAus committed Jan 18, 2021
    Configuration menu
    Copy the full SHA
    0068358 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of #81153 - jyn514:linkcheck, r=Manishearth

    Remove unused linkcheck exceptions
    
    Found while working on deadlinks/cargo-deadlinks#133.
    
    r? `@Manishearth`
    KodrAus committed Jan 18, 2021
    Configuration menu
    Copy the full SHA
    33d184b View commit details
    Browse the repository at this point in the history