rust/src/test/ui/rust-2018
bors 0cd939e36c Auto merge of #96150 - est31:unused_macro_rules, r=petrochenkov
Implement a lint to warn about unused macro rules

This implements a new lint to warn about unused macro rules (arms/matchers), similar to the `unused_macros` lint added by #41907 that warns about entire macros.

```rust
macro_rules! unused_empty {
    (hello) => { println!("Hello, world!") };
    () => { println!("empty") }; //~ ERROR: 1st rule of macro `unused_empty` is never used
}

fn main() {
    unused_empty!(hello);
}
```

Builds upon #96149 and #96156.

Fixes #73576
2022-05-12 00:08:08 +00:00
..
auxiliary Add test. 2022-05-07 13:08:04 +02:00
uniform-paths
async-ident-allowed.rs
async-ident-allowed.stderr
async-ident.fixed Allow unused rules in the testsuite where the lint triggers 2022-05-05 19:13:00 +02:00
async-ident.rs Allow unused rules in the testsuite where the lint triggers 2022-05-05 19:13:00 +02:00
async-ident.stderr
dyn-keyword.fixed
dyn-keyword.rs
dyn-keyword.stderr
dyn-trait-compatibility.rs
dyn-trait-compatibility.stderr
edition-lint-fully-qualified-paths.fixed
edition-lint-fully-qualified-paths.rs
edition-lint-fully-qualified-paths.stderr
edition-lint-infer-outlives-macro.rs Add test. 2022-05-07 13:08:04 +02:00
edition-lint-infer-outlives-macro.stderr Add test. 2022-05-07 13:08:04 +02:00
edition-lint-infer-outlives-multispan.rs
edition-lint-infer-outlives-multispan.stderr
edition-lint-infer-outlives.fixed
edition-lint-infer-outlives.rs
edition-lint-infer-outlives.stderr
edition-lint-nested-empty-paths.fixed resolve: Do not build expensive suggestions if they are not actually used 2022-03-25 02:03:54 +03:00
edition-lint-nested-empty-paths.rs resolve: Do not build expensive suggestions if they are not actually used 2022-03-25 02:03:54 +03:00
edition-lint-nested-empty-paths.stderr resolve: Do not build expensive suggestions if they are not actually used 2022-03-25 02:03:54 +03:00
edition-lint-nested-paths.fixed resolve: Do not build expensive suggestions if they are not actually used 2022-03-25 02:03:54 +03:00
edition-lint-nested-paths.rs resolve: Do not build expensive suggestions if they are not actually used 2022-03-25 02:03:54 +03:00
edition-lint-nested-paths.stderr resolve: Do not build expensive suggestions if they are not actually used 2022-03-25 02:03:54 +03:00
edition-lint-paths-2018.rs
edition-lint-paths.fixed resolve: Do not build expensive suggestions if they are not actually used 2022-03-25 02:03:54 +03:00
edition-lint-paths.rs resolve: Do not build expensive suggestions if they are not actually used 2022-03-25 02:03:54 +03:00
edition-lint-paths.stderr resolve: Do not build expensive suggestions if they are not actually used 2022-03-25 02:03:54 +03:00
edition-lint-uninferable-outlives.rs
extern-crate-idiomatic-in-2018.fixed
extern-crate-idiomatic-in-2018.rs
extern-crate-idiomatic-in-2018.stderr
extern-crate-idiomatic.fixed
extern-crate-idiomatic.rs
extern-crate-referenced-by-self-path.fixed
extern-crate-referenced-by-self-path.rs
extern-crate-rename.fixed resolve: Do not build expensive suggestions if they are not actually used 2022-03-25 02:03:54 +03:00
extern-crate-rename.rs resolve: Do not build expensive suggestions if they are not actually used 2022-03-25 02:03:54 +03:00
extern-crate-rename.stderr resolve: Do not build expensive suggestions if they are not actually used 2022-03-25 02:03:54 +03:00
extern-crate-submod.fixed resolve: Do not build expensive suggestions if they are not actually used 2022-03-25 02:03:54 +03:00
extern-crate-submod.rs resolve: Do not build expensive suggestions if they are not actually used 2022-03-25 02:03:54 +03:00
extern-crate-submod.stderr resolve: Do not build expensive suggestions if they are not actually used 2022-03-25 02:03:54 +03:00
future-proofing-locals.rs
future-proofing-locals.stderr
issue-51008-1.rs
issue-51008.rs
issue-52202-use-suggestions.rs
issue-52202-use-suggestions.stderr
issue-54006.rs
issue-54006.stderr
issue-54400-unused-extern-crate-attr-span.fixed
issue-54400-unused-extern-crate-attr-span.rs
issue-54400-unused-extern-crate-attr-span.stderr
local-path-suggestions-2015.rs
local-path-suggestions-2015.stderr
local-path-suggestions-2018.rs
local-path-suggestions-2018.stderr
macro-use-warned-against.rs
macro-use-warned-against.stderr
proc-macro-crate-in-paths.rs
remove-extern-crate.fixed
remove-extern-crate.rs
remove-extern-crate.stderr
suggestions-not-always-applicable.fixed
suggestions-not-always-applicable.rs
trait-import-suggestions.rs
trait-import-suggestions.stderr Improve method name suggestions 2022-04-03 16:38:57 +01:00
try-ident.fixed
try-ident.rs
try-ident.stderr
try-macro.fixed
try-macro.rs
try-macro.stderr
unresolved-asterisk-imports.rs
unresolved-asterisk-imports.stderr