rust/src/test/ui/rust-2018
Alex Crichton 0b969a9d68 rustc: Lint against #[macro_use] in 2018 idioms
This commit adds a lint to the compiler to warn against the `#[macro_use]`
directive as part of the `rust_2018_idioms` lint. This lint is turned off by
default and is only enabled when the `use_extern_macros` feature is also
enabled.

The lint here isn't fully fleshed out as it's just a simple warning rather than
suggestions of how to actually import the macro, but hopefully it's a good base
to start from!

cc #52043
2018-07-12 14:10:39 -07:00
..
auxiliary rustc: Lint against #[macro_use] in 2018 idioms 2018-07-12 14:10:39 -07:00
edition-lint-fully-qualified-paths.fixed Fix naming conventions for new lints 2018-05-25 02:35:07 +03:00
edition-lint-fully-qualified-paths.rs Fix naming conventions for new lints 2018-05-25 02:35:07 +03:00
edition-lint-fully-qualified-paths.stderr Fix naming conventions for new lints 2018-05-25 02:35:07 +03:00
edition-lint-nested-empty-paths.fixed Fix naming conventions for new lints 2018-05-25 02:35:07 +03:00
edition-lint-nested-empty-paths.rs Fix naming conventions for new lints 2018-05-25 02:35:07 +03:00
edition-lint-nested-empty-paths.stderr Fix naming conventions for new lints 2018-05-25 02:35:07 +03:00
edition-lint-nested-paths.fixed Fix naming conventions for new lints 2018-05-25 02:35:07 +03:00
edition-lint-nested-paths.rs Fix naming conventions for new lints 2018-05-25 02:35:07 +03:00
edition-lint-nested-paths.stderr Fix naming conventions for new lints 2018-05-25 02:35:07 +03:00
edition-lint-paths.fixed Fix naming conventions for new lints 2018-05-25 02:35:07 +03:00
edition-lint-paths.rs Fix naming conventions for new lints 2018-05-25 02:35:07 +03:00
edition-lint-paths.stderr Fix naming conventions for new lints 2018-05-25 02:35:07 +03:00
extern-crate-idiomatic-in-2018.fixed merge UNNECESSARY_EXTERN_CRATE and UNUSED_EXTERN_CRATES 2018-06-01 11:00:18 -04:00
extern-crate-idiomatic-in-2018.rs merge UNNECESSARY_EXTERN_CRATE and UNUSED_EXTERN_CRATES 2018-06-01 11:00:18 -04:00
extern-crate-idiomatic-in-2018.stderr merge UNNECESSARY_EXTERN_CRATE and UNUSED_EXTERN_CRATES 2018-06-01 11:00:18 -04:00
extern-crate-idiomatic.fixed Fix naming conventions for new lints 2018-05-25 02:35:07 +03:00
extern-crate-idiomatic.rs Fix naming conventions for new lints 2018-05-25 02:35:07 +03:00
extern-crate-referenced-by-self-path.fixed Fix naming conventions for new lints 2018-05-25 02:35:07 +03:00
extern-crate-referenced-by-self-path.rs Fix naming conventions for new lints 2018-05-25 02:35:07 +03:00
extern-crate-rename.fixed Fix naming conventions for new lints 2018-05-25 02:35:07 +03:00
extern-crate-rename.rs Fix naming conventions for new lints 2018-05-25 02:35:07 +03:00
extern-crate-rename.stderr Fix naming conventions for new lints 2018-05-25 02:35:07 +03:00
extern-crate-submod.fixed Fix naming conventions for new lints 2018-05-25 02:35:07 +03:00
extern-crate-submod.rs Fix naming conventions for new lints 2018-05-25 02:35:07 +03:00
extern-crate-submod.stderr Fix naming conventions for new lints 2018-05-25 02:35:07 +03:00
issue-51008-1.rs also reset anon-param-mode for fn() types 2018-05-30 14:54:51 -04:00
issue-51008.rs reset the "anonymous lifetime mode" for parenthesized where clauses 2018-05-30 14:54:51 -04:00
issue-52202-use-suggestions.rs in which use suggestions meet edition 2018 2018-07-09 23:21:29 -07:00
issue-52202-use-suggestions.stderr in which use suggestions meet edition 2018 2018-07-09 23:21:29 -07:00
macro-use-warned-against.rs rustc: Lint against #[macro_use] in 2018 idioms 2018-07-12 14:10:39 -07:00
macro-use-warned-against.stderr rustc: Lint against #[macro_use] in 2018 idioms 2018-07-12 14:10:39 -07:00