rust-clippy/tests
bors 3f4e5999b2 Auto merge of #11094 - y21:issue11084, r=Alexendoo
[`useless_vec`]: add more tests and don't lint inside of macros

Closes #11084.

I realized that the fix I added in #11081 itself also causes an error in a suggestion when inside of a macro. Example:
```rs
macro_rules! x {
  () => {
    for _ in vec![1, 2] {}
  }
}
x!();
```
Here it would suggest replacing `vec![1, 2]` with `[x!()]`, because that's what the source callsite is (reminder: it does this to get the correct span of `x!()` for code like `for _ in vec![x!()]`), but that's wrong when *inside* macros, so I decided to make it not lint if the whole loop construct is inside a macro to avoid this issue.

changelog: [`useless_vec`]: add more tests and don't lint inside of macros

r? `@Alexendoo` since these were your tests, I figured it makes most sense to assign you
2023-07-03 21:07:44 +00:00
..
test_utils Revert "Dogfood missing_assert_message on Clippy" 2023-03-08 08:51:50 +00:00
ui Auto merge of #11094 - y21:issue11084, r=Alexendoo 2023-07-03 21:07:44 +00:00
ui-cargo Update tests 2023-06-26 14:13:07 +00:00
ui-internal Merge remote-tracking branch 'upstream/master' into rustup 2023-06-30 16:09:06 +02:00
ui-toml change category and refactor 2023-06-27 05:16:40 -05:00
workspace_test Fix false positive of [self_named_module_files] and [mod_module_files] 2023-06-18 09:04:59 +08:00
check-fmt.rs
clippy.toml
compile-test.rs Auto merge of #10920 - blyxyas:speedtest, r=llogiq 2023-07-02 15:48:50 +00:00
dogfood.rs Merge commit '371120bdbf58a331db5dcfb2d9cddc040f486de8' into clippyup 2023-05-05 17:45:49 +02:00
headers.rs Add a test that checks for old style test headers 2023-04-23 14:20:55 +00:00
integration.rs Revert "Dogfood missing_assert_message on Clippy" 2023-03-08 08:51:50 +00:00
lint_message_convention.rs new lint needless_raw_string + refactor a bit 2023-06-27 05:12:00 -05:00
missing-test-files.rs Port clippy away from compiletest to ui_test 2023-06-26 14:13:07 +00:00
versioncheck.rs Merge commit '4bdfb0741dbcecd5279a2635c3280726db0604b5' into clippyup 2022-12-17 14:12:54 +01:00
workspace.rs Fix false positive of [self_named_module_files] and [mod_module_files] 2023-06-18 09:04:59 +08:00