query-fy type_name

This commit is contained in:
Mark Mansi 2019-06-02 23:20:36 -05:00
parent b7f5eab11c
commit 0f822d775f
5 changed files with 12 additions and 3 deletions

View file

@ -441,6 +441,15 @@ rustc_queries! {
no_force
desc { "extract field of const" }
}
/// Produces an absolute path representation of the given type. See also the documentation
/// on `std::any::type_name`.
query type_name(key: Ty<'tcx>) -> &'tcx ty::Const<'tcx> {
eval_always
no_force
desc { "get absolute path of type" }
}
}
TypeChecking {