@@ -1010,7 +1010,7 @@ fn is_slice_like<'tcx>(cx: &LateContext<'tcx>, ty: Ty<'_>) -> bool {
10101010 _ => false ,
10111011 } ;
10121012
1013- is_slice || is_type_diagnostic_item ( cx, ty, sym:: vec_type) || is_type_diagnostic_item ( cx, ty, sym ! ( vecdeque_type) )
1013+ is_slice || is_type_diagnostic_item ( cx, ty, sym:: vec_type) || is_type_diagnostic_item ( cx, ty, sym:: vecdeque_type)
10141014}
10151015
10161016fn fetch_cloned_expr < ' tcx > ( expr : & ' tcx Expr < ' tcx > ) -> & ' tcx Expr < ' tcx > {
@@ -1908,7 +1908,7 @@ fn check_for_loop_over_map_kv<'tcx>(
19081908 _ => arg,
19091909 } ;
19101910
1911- if is_type_diagnostic_item ( cx, ty, sym ! ( hashmap_type) ) || match_type ( cx, ty, & paths:: BTREEMAP ) {
1911+ if is_type_diagnostic_item ( cx, ty, sym:: hashmap_type) || match_type ( cx, ty, & paths:: BTREEMAP ) {
19121912 span_lint_and_then (
19131913 cx,
19141914 FOR_KV_MAP ,
@@ -2386,9 +2386,9 @@ fn is_ref_iterable_type(cx: &LateContext<'_>, e: &Expr<'_>) -> bool {
23862386 is_iterable_array ( ty, cx) ||
23872387 is_type_diagnostic_item ( cx, ty, sym:: vec_type) ||
23882388 match_type ( cx, ty, & paths:: LINKED_LIST ) ||
2389- is_type_diagnostic_item ( cx, ty, sym ! ( hashmap_type) ) ||
2390- is_type_diagnostic_item ( cx, ty, sym ! ( hashset_type) ) ||
2391- is_type_diagnostic_item ( cx, ty, sym ! ( vecdeque_type) ) ||
2389+ is_type_diagnostic_item ( cx, ty, sym:: hashmap_type) ||
2390+ is_type_diagnostic_item ( cx, ty, sym:: hashset_type) ||
2391+ is_type_diagnostic_item ( cx, ty, sym:: vecdeque_type) ||
23922392 match_type ( cx, ty, & paths:: BINARY_HEAP ) ||
23932393 match_type ( cx, ty, & paths:: BTREEMAP ) ||
23942394 match_type ( cx, ty, & paths:: BTREESET )
@@ -2922,9 +2922,9 @@ fn check_needless_collect_direct_usage<'tcx>(expr: &'tcx Expr<'_>, cx: &LateCont
29222922 then {
29232923 let ty = cx. typeck_results( ) . node_type( ty. hir_id) ;
29242924 if is_type_diagnostic_item( cx, ty, sym:: vec_type) ||
2925- is_type_diagnostic_item( cx, ty, sym! ( vecdeque_type) ) ||
2925+ is_type_diagnostic_item( cx, ty, sym:: vecdeque_type) ||
29262926 match_type( cx, ty, & paths:: BTREEMAP ) ||
2927- is_type_diagnostic_item( cx, ty, sym! ( hashmap_type) ) {
2927+ is_type_diagnostic_item( cx, ty, sym:: hashmap_type) {
29282928 if method. ident. name == sym!( len) {
29292929 let span = shorten_needless_collect_span( expr) ;
29302930 span_lint_and_sugg(
@@ -2992,7 +2992,7 @@ fn check_needless_collect_indirect_usage<'tcx>(expr: &'tcx Expr<'_>, cx: &LateCo
29922992 if let Some ( GenericArg :: Type ( ref ty) ) = generic_args. args. get( 0 ) ;
29932993 if let ty = cx. typeck_results( ) . node_type( ty. hir_id) ;
29942994 if is_type_diagnostic_item( cx, ty, sym:: vec_type) ||
2995- is_type_diagnostic_item( cx, ty, sym! ( vecdeque_type) ) ||
2995+ is_type_diagnostic_item( cx, ty, sym:: vecdeque_type) ||
29962996 match_type( cx, ty, & paths:: LINKED_LIST ) ;
29972997 if let Some ( iter_calls) = detect_iter_and_into_iters( block, * ident) ;
29982998 if iter_calls. len( ) == 1 ;
0 commit comments