Skip to content

Commit 9aa4ce2

Browse files
committed
Make naming more consistent.
1 parent efd9deb commit 9aa4ce2

File tree

1 file changed

+10
-10
lines changed
  • compiler/rustc_middle/src/query

1 file changed

+10
-10
lines changed

compiler/rustc_middle/src/query/mod.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1732,29 +1732,29 @@ rustc_queries! {
17321732
/// Does lifetime resolution on items. Importantly, we can't resolve
17331733
/// lifetimes directly on things like trait methods, because of trait params.
17341734
/// See `rustc_resolve::late::lifetimes` for details.
1735-
query resolve_bound_vars(def_id: hir::OwnerId) -> &'tcx ResolveBoundVars {
1735+
query resolve_bound_vars(owner_id: hir::OwnerId) -> &'tcx ResolveBoundVars {
17361736
arena_cache
1737-
desc { |tcx| "resolving lifetimes for `{}`", tcx.def_path_str(def_id) }
1737+
desc { |tcx| "resolving lifetimes for `{}`", tcx.def_path_str(owner_id) }
17381738
}
1739-
query named_variable_map(def_id: hir::OwnerId) ->
1739+
query named_variable_map(owner_id: hir::OwnerId) ->
17401740
Option<&'tcx FxIndexMap<ItemLocalId, ResolvedArg>> {
1741-
desc { |tcx| "looking up a named region inside `{}`", tcx.def_path_str(def_id) }
1741+
desc { |tcx| "looking up a named region inside `{}`", tcx.def_path_str(owner_id) }
17421742
}
1743-
query is_late_bound_map(def_id: hir::OwnerId) -> Option<&'tcx FxIndexSet<ItemLocalId>> {
1744-
desc { |tcx| "testing if a region is late bound inside `{}`", tcx.def_path_str(def_id) }
1743+
query is_late_bound_map(owner_id: hir::OwnerId) -> Option<&'tcx FxIndexSet<ItemLocalId>> {
1744+
desc { |tcx| "testing if a region is late bound inside `{}`", tcx.def_path_str(owner_id) }
17451745
}
17461746
/// For a given item's generic parameter, gets the default lifetimes to be used
17471747
/// for each parameter if a trait object were to be passed for that parameter.
17481748
/// For example, for `T` in `struct Foo<'a, T>`, this would be `'static`.
17491749
/// For `T` in `struct Foo<'a, T: 'a>`, this would instead be `'a`.
17501750
/// This query will panic if passed something that is not a type parameter.
1751-
query object_lifetime_default(key: DefId) -> ObjectLifetimeDefault {
1752-
desc { "looking up lifetime defaults for generic parameter `{}`", tcx.def_path_str(key) }
1751+
query object_lifetime_default(def_id: DefId) -> ObjectLifetimeDefault {
1752+
desc { "looking up lifetime defaults for generic parameter `{}`", tcx.def_path_str(def_id) }
17531753
separate_provide_extern
17541754
}
1755-
query late_bound_vars_map(def_id: hir::OwnerId)
1755+
query late_bound_vars_map(owner_id: hir::OwnerId)
17561756
-> Option<&'tcx FxIndexMap<ItemLocalId, Vec<ty::BoundVariableKind>>> {
1757-
desc { |tcx| "looking up late bound vars inside `{}`", tcx.def_path_str(def_id) }
1757+
desc { |tcx| "looking up late bound vars inside `{}`", tcx.def_path_str(owner_id) }
17581758
}
17591759

17601760
/// Computes the visibility of the provided `def_id`.

0 commit comments

Comments
 (0)