Auto merge of #95537 - GuillaumeGomez:type_of-doc, r=Dylan-DPC

Improve TyCtxt::type_of documentation

r? `@oli-obk`
This commit is contained in:
bors 2022-04-02 12:13:11 +00:00
commit fbc45b650a

View file

@ -124,7 +124,10 @@ rustc_queries! {
separate_provide_extern separate_provide_extern
} }
/// Records the type of every item. /// Returns the [`Ty`][rustc_middle::ty::Ty] of the given [`DefId`]. If the [`DefId`] points
/// to an alias, it will "skip" this alias to return the aliased type.
///
/// [`DefId`]: rustc_hir::def_id::DefId
query type_of(key: DefId) -> Ty<'tcx> { query type_of(key: DefId) -> Ty<'tcx> {
desc { |tcx| desc { |tcx|
"{action} `{path}`", "{action} `{path}`",