Skip to content

Commit ddff387

Browse files
committed
Rename parameter to override_def_path_data
1 parent df1f8d1 commit ddff387

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

compiler/rustc_middle/src/ty/context.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1957,10 +1957,11 @@ impl<'tcx> TyCtxtAt<'tcx> {
19571957
parent: LocalDefId,
19581958
name: Option<Symbol>,
19591959
def_kind: DefKind,
1960-
def_path_data: Option<DefPathData>,
1960+
override_def_path_data: Option<DefPathData>,
19611961
disambiguator: &mut DisambiguatorState,
19621962
) -> TyCtxtFeed<'tcx, LocalDefId> {
1963-
let feed = self.tcx.create_def(parent, name, def_kind, def_path_data, disambiguator);
1963+
let feed =
1964+
self.tcx.create_def(parent, name, def_kind, override_def_path_data, disambiguator);
19641965

19651966
feed.def_span(self.span);
19661967
feed
@@ -1974,10 +1975,10 @@ impl<'tcx> TyCtxt<'tcx> {
19741975
parent: LocalDefId,
19751976
name: Option<Symbol>,
19761977
def_kind: DefKind,
1977-
def_path_data: Option<DefPathData>,
1978+
override_def_path_data: Option<DefPathData>,
19781979
disambiguator: &mut DisambiguatorState,
19791980
) -> TyCtxtFeed<'tcx, LocalDefId> {
1980-
let data = def_path_data.unwrap_or_else(|| def_kind.def_path_data(name));
1981+
let data = override_def_path_data.unwrap_or_else(|| def_kind.def_path_data(name));
19811982
// The following call has the side effect of modifying the tables inside `definitions`.
19821983
// These very tables are relied on by the incr. comp. engine to decode DepNodes and to
19831984
// decode the on-disk cache.

0 commit comments

Comments
 (0)