rust/tests
bors fe7254ff6f Auto merge of #8576 - smoelius:crate_in_macro_def, r=llogiq
Add `crate_in_macro_def` lint

This PR adds a lint to check for `crate` as opposed to `$crate` used in a macro definition.

I think this can close #4798. That issue focused on the case where the macro author "imports something into said macro."

But I think use of `crate` is likely to be a bug whether it appears in a `use` statement or not. There could be some use case I am failing to see, though. (cc: `@nilscript` `@flip1995)`

changelog: `crate_in_macro_def`
2022-03-30 16:57:24 +00:00
..
test_utils Merge commit '97a5daa659' into clippyup 2022-01-13 13:18:19 +01:00
ui Auto merge of #8576 - smoelius:crate_in_macro_def, r=llogiq 2022-03-30 16:57:24 +00:00
ui-cargo Merge commit '57b3c4b90f' into clippyup 2022-02-10 18:40:06 +01:00
ui-internal Merge commit 'dc5423ad44' into clippyup 2022-03-14 12:02:53 +01:00
ui-toml Merge commit 'a98e7ab8b9' into clippyup 2022-01-27 15:12:45 +01: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 Merge commit '27afd6ade4' into clippyup 2021-09-08 16:31:47 +02:00
workspace.rs resolve the conflict in compiler/rustc_session/src/parse.rs 2022-03-16 20:12:30 +08:00