@@ -2,7 +2,7 @@ error: usage of `utils::match_type()` on a type diagnostic item
22 --> $DIR/match_type_on_diag_item.rs:41:17
33 |
44LL | let _ = match_type(cx, ty, &paths::VEC);
5- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `utils::is_type_diagnostic_item(cx, ty, sym!( vec_type) )`
5+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `utils::is_type_diagnostic_item(cx, ty, sym:: vec_type)`
66 |
77note: the lint level is defined here
88 --> $DIR/match_type_on_diag_item.rs:1:9
@@ -15,19 +15,19 @@ error: usage of `utils::match_type()` on a type diagnostic item
1515 --> $DIR/match_type_on_diag_item.rs:42:17
1616 |
1717LL | let _ = match_type(cx, ty, &OPTION);
18- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `utils::is_type_diagnostic_item(cx, ty, sym!( option_type) )`
18+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `utils::is_type_diagnostic_item(cx, ty, sym:: option_type)`
1919
2020error: usage of `utils::match_type()` on a type diagnostic item
2121 --> $DIR/match_type_on_diag_item.rs:43:17
2222 |
2323LL | let _ = match_type(cx, ty, &["core", "result", "Result"]);
24- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `utils::is_type_diagnostic_item(cx, ty, sym!( result_type) )`
24+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `utils::is_type_diagnostic_item(cx, ty, sym:: result_type)`
2525
2626error: usage of `utils::match_type()` on a type diagnostic item
2727 --> $DIR/match_type_on_diag_item.rs:46:17
2828 |
2929LL | let _ = utils::match_type(cx, ty, rc_path);
30- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `utils::is_type_diagnostic_item(cx, ty, sym!(Rc) )`
30+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `utils::is_type_diagnostic_item(cx, ty, sym::Rc )`
3131
3232error: aborting due to 4 previous errors
3333
0 commit comments