Auto merge of #99843 - oli-obk:is_useful_perf, r=compiler-errors

Some `is_useful` cleanups

#98582 was reverted because it was a perf regression.

https://github.com/rust-lang/rust/pull/99806 reintroduces the changes, but this PR picks individual ones that have no regressions.
This commit is contained in:
bors 2022-08-04 07:35:33 +00:00
commit 237b3c92b3

Diff content is not available