From b1fa845d426bb9866851c8ea610c34b68a4111b4 Mon Sep 17 00:00:00 2001 From: r0cky Date: Thu, 23 May 2024 23:50:39 +0800 Subject: [PATCH] Improve the doc of query associated_item --- compiler/rustc_middle/src/query/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs index 0654d82838c..5a6decc4f94 100644 --- a/compiler/rustc_middle/src/query/mod.rs +++ b/compiler/rustc_middle/src/query/mod.rs @@ -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() }