make precise capturing args in rustdoc Json typed
This commit is contained in:
parent
cdd8af2299
commit
112f7b01a1
11 changed files with 96 additions and 20 deletions
|
@ -25,7 +25,7 @@ use rustc_hir::def_id::{
|
|||
CrateNum, DefId, DefIdMap, LocalDefId, LocalDefIdMap, LocalDefIdSet, LocalModDefId,
|
||||
};
|
||||
use rustc_hir::lang_items::{LangItem, LanguageItems};
|
||||
use rustc_hir::{Crate, ItemLocalId, ItemLocalMap, TraitCandidate};
|
||||
use rustc_hir::{Crate, ItemLocalId, ItemLocalMap, PreciseCapturingArgKind, TraitCandidate};
|
||||
use rustc_index::IndexVec;
|
||||
use rustc_lint_defs::LintId;
|
||||
use rustc_macros::rustc_queries;
|
||||
|
@ -1430,7 +1430,7 @@ rustc_queries! {
|
|||
}
|
||||
|
||||
/// Gets the rendered precise capturing args for an opaque for use in rustdoc.
|
||||
query rendered_precise_capturing_args(def_id: DefId) -> Option<&'tcx [Symbol]> {
|
||||
query rendered_precise_capturing_args(def_id: DefId) -> Option<&'tcx [PreciseCapturingArgKind<Symbol, Symbol>]> {
|
||||
desc { |tcx| "rendering precise capturing args for `{}`", tcx.def_path_str(def_id) }
|
||||
separate_provide_extern
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@ use std::hash::Hash;
|
|||
use rustc_data_structures::unord::UnordMap;
|
||||
use rustc_hir::def_id::DefIndex;
|
||||
use rustc_index::{Idx, IndexVec};
|
||||
use rustc_span::Symbol;
|
||||
|
||||
use crate::ty;
|
||||
|
||||
|
@ -96,6 +97,7 @@ trivially_parameterized_over_tcx! {
|
|||
rustc_hir::def_id::DefIndex,
|
||||
rustc_hir::definitions::DefKey,
|
||||
rustc_hir::OpaqueTyOrigin<rustc_hir::def_id::DefId>,
|
||||
rustc_hir::PreciseCapturingArgKind<Symbol, Symbol>,
|
||||
rustc_index::bit_set::DenseBitSet<u32>,
|
||||
rustc_index::bit_set::FiniteBitSet<u32>,
|
||||
rustc_session::cstore::ForeignModule,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue