query-fy type_name
This commit is contained in:
parent
b7f5eab11c
commit
0f822d775f
5 changed files with 12 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue