hir: Remove hir::Map::{owner,expect_owner}
This commit is contained in:
parent
667d5d325f
commit
db41f4aaa0
10 changed files with 11 additions and 19 deletions
|
@ -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()))
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue