Skip to content

Commit

Permalink
Improve TyCtxt::type_of documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Apr 1, 2022
1 parent bb5c437 commit 0762470
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion compiler/rustc_middle/src/query/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ rustc_queries! {
separate_provide_extern
}

/// Records the type of every item.
/// Returns the [`Ty`][rustc_middle::ty::TyS] 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> {
desc { |tcx|
"{action} `{path}`",
Expand Down

0 comments on commit 0762470

Please sign in to comment.