about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2025-05-02 12:24:47 +0200
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2025-05-02 12:24:47 +0200
commitddff38703a3e56b26f5a73d56208a8adab5daae1 (patch)
treef3514032494e00c351324fafbff2ac094c9ded73
parentdf1f8d140e637d927caa0610f47e320d75b76a7c (diff)
downloadrust-ddff38703a3e56b26f5a73d56208a8adab5daae1.tar.gz
rust-ddff38703a3e56b26f5a73d56208a8adab5daae1.zip
Rename parameter to `override_def_path_data`
-rw-r--r--compiler/rustc_middle/src/ty/context.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/compiler/rustc_middle/src/ty/context.rs b/compiler/rustc_middle/src/ty/context.rs
index fffbf051348..66ba39761ee 100644
--- a/compiler/rustc_middle/src/ty/context.rs
+++ b/compiler/rustc_middle/src/ty/context.rs
@@ -1957,10 +1957,11 @@ impl<'tcx> TyCtxtAt<'tcx> {
         parent: LocalDefId,
         name: Option<Symbol>,
         def_kind: DefKind,
-        def_path_data: Option<DefPathData>,
+        override_def_path_data: Option<DefPathData>,
         disambiguator: &mut DisambiguatorState,
     ) -> TyCtxtFeed<'tcx, LocalDefId> {
-        let feed = self.tcx.create_def(parent, name, def_kind, def_path_data, disambiguator);
+        let feed =
+            self.tcx.create_def(parent, name, def_kind, override_def_path_data, disambiguator);
 
         feed.def_span(self.span);
         feed
@@ -1974,10 +1975,10 @@ impl<'tcx> TyCtxt<'tcx> {
         parent: LocalDefId,
         name: Option<Symbol>,
         def_kind: DefKind,
-        def_path_data: Option<DefPathData>,
+        override_def_path_data: Option<DefPathData>,
         disambiguator: &mut DisambiguatorState,
     ) -> TyCtxtFeed<'tcx, LocalDefId> {
-        let data = def_path_data.unwrap_or_else(|| def_kind.def_path_data(name));
+        let data = override_def_path_data.unwrap_or_else(|| def_kind.def_path_data(name));
         // The following call has the side effect of modifying the tables inside `definitions`.
         // These very tables are relied on by the incr. comp. engine to decode DepNodes and to
         // decode the on-disk cache.