diff options
| author | bors <bors@rust-lang.org> | 2024-07-20 11:03:35 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-07-20 11:03:35 +0000 |
| commit | 73a228116ae8c8ce73e309eee8c730ce90feac78 (patch) | |
| tree | 2a28a36e7ffa3bf2b70f66218c58092c545c79e3 /compiler/rustc_middle | |
| parent | 1afc5fd042f7583b9668dd62be98325487483d1c (diff) | |
| parent | da2054f389fbf631b0082dd3cdaf8724f9e93f56 (diff) | |
| download | rust-73a228116ae8c8ce73e309eee8c730ce90feac78.tar.gz rust-73a228116ae8c8ce73e309eee8c730ce90feac78.zip | |
Auto merge of #127658 - compiler-errors:precise-capturing-rustdoc-cross, r=fmease
Add cross-crate precise capturing support to rustdoc Follow-up to #127632. Fixes #127228. r? `@fmease` Tracking: * https://github.com/rust-lang/rust/issues/123432
Diffstat (limited to 'compiler/rustc_middle')
| -rw-r--r-- | compiler/rustc_middle/src/query/mod.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs index 817c7157b68..c7ea1d43383 100644 --- a/compiler/rustc_middle/src/query/mod.rs +++ b/compiler/rustc_middle/src/query/mod.rs @@ -1261,6 +1261,7 @@ rustc_queries! { desc { |tcx| "looking up function parameter names for `{}`", tcx.def_path_str(def_id) } separate_provide_extern } + /// Gets the rendered value of the specified constant or associated constant. /// Used by rustdoc. query rendered_const(def_id: DefId) -> &'tcx String { @@ -1268,6 +1269,13 @@ rustc_queries! { desc { |tcx| "rendering constant initializer of `{}`", tcx.def_path_str(def_id) } separate_provide_extern } + + /// Gets the rendered precise capturing args for an opaque for use in rustdoc. + query rendered_precise_capturing_args(def_id: DefId) -> Option<&'tcx [Symbol]> { + desc { |tcx| "rendering precise capturing args for `{}`", tcx.def_path_str(def_id) } + separate_provide_extern + } + query impl_parent(def_id: DefId) -> Option<DefId> { desc { |tcx| "computing specialization parent impl of `{}`", tcx.def_path_str(def_id) } separate_provide_extern |
