@@ -4,7 +4,7 @@ use rustc_errors::Applicability;
44use rustc_hir:: { Expr , Mutability } ;
55use rustc_lint:: LateContext ;
66use rustc_middle:: ty:: { self , Ty , TyS } ;
7- use rustc_span:: symbol :: sym;
7+ use rustc_span:: sym;
88
99use crate :: utils:: { is_type_diagnostic_item, match_type, paths} ;
1010
@@ -55,9 +55,9 @@ fn is_ref_iterable_type(cx: &LateContext<'_>, e: &Expr<'_>) -> bool {
5555 is_iterable_array ( ty, cx) ||
5656 is_type_diagnostic_item ( cx, ty, sym:: vec_type) ||
5757 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) ||
6161 match_type ( cx, ty, & paths:: BINARY_HEAP ) ||
6262 match_type ( cx, ty, & paths:: BTREEMAP ) ||
6363 match_type ( cx, ty, & paths:: BTREESET )
0 commit comments