hir: Remove hir::Map::{owner,expect_owner}

This commit is contained in:
Vadim Petrochenkov 2024-01-25 20:47:03 +03:00
parent 667d5d325f
commit db41f4aaa0
10 changed files with 11 additions and 19 deletions

View file

@ -578,7 +578,7 @@ pub fn check_function_signature<'tcx>(
fn_id: LocalDefId,
) -> rustc_span::Span {
let mut args = {
let node = tcx.hir().expect_owner(fn_id);
let node = tcx.expect_hir_owner_node(fn_id);
let decl = node.fn_decl().unwrap_or_else(|| bug!("expected fn decl, found {:?}", node));
decl.inputs.iter().map(|t| t.span).chain(std::iter::once(decl.output.span()))
};