Rename impl_defaultness to defaultness

This commit is contained in:
Deadbeef 2023-06-01 06:14:06 +00:00
parent ba1690bedd
commit 21bc5cded4
18 changed files with 33 additions and 32 deletions

View file

@ -1475,8 +1475,9 @@ rustc_queries! {
desc { "getting traits in scope at a block" }
}
query impl_defaultness(def_id: DefId) -> hir::Defaultness {
desc { |tcx| "looking up whether `{}` is a default impl", tcx.def_path_str(def_id) }
/// Returns whether the impl or associated function has the `default` keyword.
query defaultness(def_id: DefId) -> hir::Defaultness {
desc { |tcx| "looking up whether `{}` has `default`", tcx.def_path_str(def_id) }
separate_provide_extern
feedable
}