@@ -4,7 +4,7 @@ use rustc_errors::Applicability;
4
4
use rustc_hir:: { Expr , Mutability } ;
5
5
use rustc_lint:: LateContext ;
6
6
use rustc_middle:: ty:: { self , Ty , TyS } ;
7
- use rustc_span:: symbol :: sym;
7
+ use rustc_span:: sym;
8
8
9
9
use crate :: utils:: { is_type_diagnostic_item, match_type, paths} ;
10
10
@@ -55,9 +55,9 @@ fn is_ref_iterable_type(cx: &LateContext<'_>, e: &Expr<'_>) -> bool {
55
55
is_iterable_array ( ty, cx) ||
56
56
is_type_diagnostic_item ( cx, ty, sym:: vec_type) ||
57
57
match_type ( cx, ty, & paths:: LINKED_LIST ) ||
58
- is_type_diagnostic_item ( cx, ty, sym ! ( hashmap_type) ) ||
59
- is_type_diagnostic_item ( cx, ty, sym ! ( hashset_type) ) ||
60
- is_type_diagnostic_item ( cx, ty, sym ! ( vecdeque_type) ) ||
58
+ is_type_diagnostic_item ( cx, ty, sym:: hashmap_type) ||
59
+ is_type_diagnostic_item ( cx, ty, sym:: hashset_type) ||
60
+ is_type_diagnostic_item ( cx, ty, sym:: vecdeque_type) ||
61
61
match_type ( cx, ty, & paths:: BINARY_HEAP ) ||
62
62
match_type ( cx, ty, & paths:: BTREEMAP ) ||
63
63
match_type ( cx, ty, & paths:: BTREESET )
0 commit comments