Skip to content

Commit aa3fc79

Browse files
committed
start_index -> start_def_id
1 parent 8d11e45 commit aa3fc79

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

compiler/rustc_hir/src/definitions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,11 @@ pub struct DefPath {
144144

145145
impl DefPath {
146146
#[inline]
147-
pub fn make_local<FN>(start_index: LocalDefId, mut get_key: FN) -> DefPath
147+
pub fn make_local<FN>(start_def_id: LocalDefId, mut get_key: FN) -> DefPath
148148
where
149149
FN: FnMut(LocalDefId) -> DefKey,
150150
{
151-
Self::make(LOCAL_CRATE, start_index.local_def_index, |index| {
151+
Self::make(LOCAL_CRATE, start_def_id.local_def_index, |index| {
152152
get_key(LocalDefId { local_def_index: index })
153153
})
154154
}

0 commit comments

Comments
 (0)