rustc_lint: only query typeck_tables_of
when a lint needs it.
#73743
+441
−401
typeck_tables_of
when a lint needs it.
#73743