1. 07 4月, 2022 6 次提交
  2. 06 4月, 2022 7 次提交
  3. 05 4月, 2022 11 次提交
  4. 04 4月, 2022 3 次提交
    • B
      Auto merge of #8450 - Jarcho:unsafe_blocks_8449, r=giraffate · 190f0dea
      bors 提交于
      Rework `undocumented_unsafe_blocks`
      
      fixes: #8264
      fixes: #8449
      
      One thing came up while working on this. Currently comments on the same line are supported like so:
      
      ```rust
      /* SAFETY: reason */ unsafe {}
      ```
      
      Is this worth supporting at all? Anything other than a couple of words doesn't really fit well.
      
      edit: [zulip topic](https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/.60undocumented_unsafe_blocks.60.20same.20line.20comment)
      
      changelog: Don't lint `undocumented_unsafe_blocks` when the unsafe block comes from a proc-macro.
      changelog: Don't lint `undocumented_unsafe_blocks` when the preceding line has a safety comment and the unsafe block is a sub-expression.
      190f0dea
    • B
      Auto merge of #8594 - FoseFx:unit_like_struct_brackets, r=giraffate · 1cec8b30
      bors 提交于
      add `empty_structs_with_brackets`
      
      <!-- Thank you for making Clippy better!
      
      We're collecting our changelog from pull request descriptions.
      If your PR only includes internal changes, you can just write
      `changelog: none`. Otherwise, please write a short comment
      explaining your change. Also, it's helpful for us that
      the lint name is put into brackets `[]` and backticks `` ` ` ``,
      e.g. ``[`lint_name`]``.
      
      If your PR fixes an issue, you can add "fixes #issue_number" into this
      PR description. This way the issue will be automatically closed when
      your PR is merged.
      
      If you added a new lint, here's a checklist for things that will be
      checked during review or continuous integration.
      
      - \[ ] Followed [lint naming conventions][lint_naming]
      - \[ ] Added passing UI tests (including committed `.stderr` file)
      - \[ ] `cargo test` passes locally
      - \[ ] Executed `cargo dev update_lints`
      - \[ ] Added lint documentation
      - \[ ] Run `cargo dev fmt`
      
      [lint_naming]: https://rust-lang.github.io/rfcs/0344-conventions-galore.html#lints
      
      Note that you can skip the above if you are just opening a WIP PR in
      order to get feedback.
      
      Delete this line and everything above before opening your PR.
      
      --
      
      *Please write a short comment explaining your change (or "none" for internal only changes)*
      -->
      Closes #8591
      
      I'm already sorry for the massive diff 😅
      
      changelog: New lint [`empty_structs_with_brackets`]
      1cec8b30
    • M
      is_unit_like_struct -> has_brackets · 58833e58
      Max Baumann 提交于
      58833e58
  5. 02 4月, 2022 8 次提交
  6. 01 4月, 2022 2 次提交
  7. 31 3月, 2022 3 次提交