diff options
| author | Miguel Guarniz <mi9uel9@gmail.com> | 2022-07-19 17:06:52 -0400 |
|---|---|---|
| committer | Miguel Guarniz <mi9uel9@gmail.com> | 2022-07-29 18:26:10 -0400 |
| commit | 16513d689e4fe30e58a37dd773af5be9210ebcbd (patch) | |
| tree | 3b4375ba578709ef3142542c85d2ef411987ddea /compiler/rustc_middle/src/hir | |
| parent | 25bdc8965e7a80cb3a72da79ca568953738fe433 (diff) | |
| download | rust-16513d689e4fe30e58a37dd773af5be9210ebcbd.tar.gz rust-16513d689e4fe30e58a37dd773af5be9210ebcbd.zip | |
Rename local_did to def_id
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
Diffstat (limited to 'compiler/rustc_middle/src/hir')
| -rw-r--r-- | compiler/rustc_middle/src/hir/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_middle/src/hir/mod.rs b/compiler/rustc_middle/src/hir/mod.rs index 3c008749358..211a614717f 100644 --- a/compiler/rustc_middle/src/hir/mod.rs +++ b/compiler/rustc_middle/src/hir/mod.rs @@ -157,9 +157,9 @@ pub fn provide(providers: &mut Providers) { }; providers.fn_arg_names = |tcx, id| { let hir = tcx.hir(); - let local_did = id.expect_local(); - let hir_id = hir.local_def_id_to_hir_id(local_did); - if let Some(body_id) = hir.maybe_body_owned_by(local_did) { + let def_id = id.expect_local(); + let hir_id = hir.local_def_id_to_hir_id(def_id); + if let Some(body_id) = hir.maybe_body_owned_by(def_id) { tcx.arena.alloc_from_iter(hir.body_param_names(body_id)) } else if let Node::TraitItem(&TraitItem { kind: TraitItemKind::Fn(_, TraitFn::Required(idents)), |
