We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 07a461a + 6fdeee4 commit fbc45b6Copy full SHA for fbc45b6
compiler/rustc_middle/src/query/mod.rs
@@ -124,7 +124,10 @@ rustc_queries! {
124
separate_provide_extern
125
}
126
127
- /// Records the type of every item.
+ /// Returns the [`Ty`][rustc_middle::ty::Ty] of the given [`DefId`]. If the [`DefId`] points
128
+ /// to an alias, it will "skip" this alias to return the aliased type.
129
+ ///
130
+ /// [`DefId`]: rustc_hir::def_id::DefId
131
query type_of(key: DefId) -> Ty<'tcx> {
132
desc { |tcx|
133
"{action} `{path}`",
0 commit comments