Fix dogfood after MatchTypeOnDiagItem

This commit is contained in:
Eduardo Broto 2020-09-06 23:48:04 +02:00
parent 8afa7ed6ae
commit 332c2dcb4d
3 changed files with 4 additions and 4 deletions

View file

@ -1808,7 +1808,7 @@ fn lint_or_fun_call<'tcx>(
_ => (),
}
if match_type(cx, ty, &paths::VEC) {
if is_type_diagnostic_item(cx, ty, sym!(vec_type)) {
return;
}
}