Skip to content

Commit 6a8d93c

Browse files
committed
Make naming more consistent.
1 parent 435b924 commit 6a8d93c

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
@@ -1737,29 +1737,29 @@ rustc_queries! {
17371737
/// Does lifetime resolution on items. Importantly, we can't resolve
17381738
/// lifetimes directly on things like trait methods, because of trait params.
17391739
/// See `rustc_resolve::late::lifetimes` for details.
1740-
query resolve_bound_vars(def_id: hir::OwnerId) -> &'tcx ResolveBoundVars {
1740+
query resolve_bound_vars(owner_id: hir::OwnerId) -> &'tcx ResolveBoundVars {
17411741
arena_cache
1742-
desc { |tcx| "resolving lifetimes for `{}`", tcx.def_path_str(def_id) }
1742+
desc { |tcx| "resolving lifetimes for `{}`", tcx.def_path_str(owner_id) }
17431743
}
1744-
query named_variable_map(def_id: hir::OwnerId) ->
1744+
query named_variable_map(owner_id: hir::OwnerId) ->
17451745
Option<&'tcx FxIndexMap<ItemLocalId, ResolvedArg>> {
1746-
desc { |tcx| "looking up a named region inside `{}`", tcx.def_path_str(def_id) }
1746+
desc { |tcx| "looking up a named region inside `{}`", tcx.def_path_str(owner_id) }
17471747
}
1748-
query is_late_bound_map(def_id: hir::OwnerId) -> Option<&'tcx FxIndexSet<ItemLocalId>> {
1749-
desc { |tcx| "testing if a region is late bound inside `{}`", tcx.def_path_str(def_id) }
1748+
query is_late_bound_map(owner_id: hir::OwnerId) -> Option<&'tcx FxIndexSet<ItemLocalId>> {
1749+
desc { |tcx| "testing if a region is late bound inside `{}`", tcx.def_path_str(owner_id) }
17501750
}
17511751
/// For a given item's generic parameter, gets the default lifetimes to be used
17521752
/// for each parameter if a trait object were to be passed for that parameter.
17531753
/// For example, for `T` in `struct Foo<'a, T>`, this would be `'static`.
17541754
/// For `T` in `struct Foo<'a, T: 'a>`, this would instead be `'a`.
17551755
/// This query will panic if passed something that is not a type parameter.
1756-
query object_lifetime_default(key: DefId) -> ObjectLifetimeDefault {
1757-
desc { "looking up lifetime defaults for generic parameter `{}`", tcx.def_path_str(key) }
1756+
query object_lifetime_default(def_id: DefId) -> ObjectLifetimeDefault {
1757+
desc { "looking up lifetime defaults for generic parameter `{}`", tcx.def_path_str(def_id) }
17581758
separate_provide_extern
17591759
}
1760-
query late_bound_vars_map(def_id: hir::OwnerId)
1760+
query late_bound_vars_map(owner_id: hir::OwnerId)
17611761
-> Option<&'tcx FxIndexMap<ItemLocalId, Vec<ty::BoundVariableKind>>> {
1762-
desc { |tcx| "looking up late bound vars inside `{}`", tcx.def_path_str(def_id) }
1762+
desc { |tcx| "looking up late bound vars inside `{}`", tcx.def_path_str(owner_id) }
17631763
}
17641764

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

0 commit comments

Comments
 (0)