04bded5d6e
Use `is_diagnostic_item` for checking a def_id in `unnecessary_min_or_max`. close #13191 This PR fixes the false positives in `unnecessary_min_or_max `. We should use `is_diagnostic_item` for checking def_ids in this lint. ---- changelog: fix false positive in `unnecessary_min_or_max `.