Improve the doc of query associated_item

This commit is contained in:
r0cky 2024-05-23 23:50:39 +08:00
parent ed172dbbaf
commit b1fa845d42

View File

@ -780,7 +780,7 @@
separate_provide_extern
}
/// Maps from a trait item to the trait item "descriptor".
/// Maps from a trait/impl item to the trait/impl item "descriptor".
query associated_item(key: DefId) -> ty::AssocItem {
desc { |tcx| "computing associated item data for `{}`", tcx.def_path_str(key) }
cache_on_disk_if { key.is_local() }