Skip to content

Commit dd71ce3

Browse files
Improve TyCtxt::type_of documentation
1 parent bb5c437 commit dd71ce3

File tree

1 file changed

+2
-1
lines changed
  • compiler/rustc_middle/src/query

1 file changed

+2
-1
lines changed

compiler/rustc_middle/src/query/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ rustc_queries! {
124124
separate_provide_extern
125125
}
126126

127-
/// Records the type of every item.
127+
/// Returns the [`Ty`] of the given [`DefId`]. If the [`DefId`] points to an alias, it will
128+
/// "skip" this alias to return the aliased type.
128129
query type_of(key: DefId) -> Ty<'tcx> {
129130
desc { |tcx|
130131
"{action} `{path}`",

0 commit comments

Comments
 (0)