@@ -12,7 +12,8 @@ use syntax::ast::{Ident, Item, ItemKind};
1212declare_tool_lint ! {
1313 pub rustc:: DEFAULT_HASH_TYPES ,
1414 Allow ,
15- "forbid HashMap and HashSet and suggest the FxHash* variants"
15+ "forbid HashMap and HashSet and suggest the FxHash* variants" ,
16+ report_in_external_macro: true
1617}
1718
1819pub struct DefaultHashTypes {
@@ -52,19 +53,22 @@ impl EarlyLintPass for DefaultHashTypes {
5253declare_tool_lint ! {
5354 pub rustc:: USAGE_OF_TY_TYKIND ,
5455 Allow ,
55- "usage of `ty::TyKind` outside of the `ty::sty` module"
56+ "usage of `ty::TyKind` outside of the `ty::sty` module" ,
57+ report_in_external_macro: true
5658}
5759
5860declare_tool_lint ! {
5961 pub rustc:: TY_PASS_BY_REFERENCE ,
6062 Allow ,
61- "passing `Ty` or `TyCtxt` by reference"
63+ "passing `Ty` or `TyCtxt` by reference" ,
64+ report_in_external_macro: true
6265}
6366
6467declare_tool_lint ! {
6568 pub rustc:: USAGE_OF_QUALIFIED_TY ,
6669 Allow ,
67- "using `ty::{Ty,TyCtxt}` instead of importing it"
70+ "using `ty::{Ty,TyCtxt}` instead of importing it" ,
71+ report_in_external_macro: true
6872}
6973
7074declare_lint_pass ! ( TyTyKind => [
0 commit comments