rust/tests
bors 190f0deac8 Auto merge of #8450 - Jarcho:unsafe_blocks_8449, r=giraffate
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.
2022-04-04 13:07:26 +00:00
..
test_utils Merge commit '97a5daa659' into clippyup 2022-01-13 13:18:19 +01:00
ui Auto merge of #8450 - Jarcho:unsafe_blocks_8449, r=giraffate 2022-04-04 13:07:26 +00:00
ui-cargo Handle relative paths in module_files lints 2022-03-30 18:44:04 +01:00
ui-internal Merge commit 'dc5423ad44' into clippyup 2022-03-14 12:02:53 +01:00
ui-toml fix existing clippy tests 2022-03-30 20:12:58 +02:00
workspace_test Merge commit '97a5daa659' into clippyup 2022-01-13 13:18:19 +01:00
clippy.toml Merge commit '3ae8faff4d' into clippyup 2021-06-03 08:41:37 +02:00
compile-test.rs Merge commit 'dc5423ad44' into clippyup 2022-03-14 12:02:53 +01:00
dogfood.rs Merge commit '97a5daa659' into clippyup 2022-01-13 13:18:19 +01:00
fmt.rs Merge commit '97a5daa659' into clippyup 2022-01-13 13:18:19 +01:00
integration.rs Merge commit 'cb7915b00c' into clippyup 2021-09-28 18:03:12 +01:00
lint_message_convention.rs resolve the conflict in compiler/rustc_session/src/parse.rs 2022-03-16 20:12:30 +08:00
missing-test-files.rs Merge commit 'e181011378' into clippyup 2021-11-04 12:52:36 +00:00
versioncheck.rs Remove cargo_metadata dependency from clippy 2022-04-01 23:18:47 -04:00
workspace.rs resolve the conflict in compiler/rustc_session/src/parse.rs 2022-03-16 20:12:30 +08:00