hir: Remove `opt_local_def_id_to_hir_id` and `opt_hir_node_by_def_id` Also replace a few `hir_node()` calls with `hir_node_by_def_id()`. Follow up to https://github.com/rust-lang/rust/pull/120943.
Session
DiagCtxt
hir::StmtKind::Local
hir::StmtKind::Let
untranslatable_diagnostic
opt_local_def_id_to_hir_id
opt_hir_node_by_def_id
AddToDiagnostic
Subdiagnostic
fn opt_hir_id
fn opt_span