Improve pretty printing of valtrees for references
This commit is contained in:
parent
94e93749ab
commit
cd88bb332c
9 changed files with 144 additions and 102 deletions
|
@ -978,11 +978,8 @@ rustc_queries! {
|
|||
desc { "converting type-level constant value to mir constant value"}
|
||||
}
|
||||
|
||||
/// Destructure a constant ADT or array into its variant index and its
|
||||
/// field values or return `None` if constant is invalid.
|
||||
///
|
||||
/// Use infallible `TyCtxt::destructure_const` when you know that constant is valid.
|
||||
query try_destructure_const(key: ty::Const<'tcx>) -> Option<ty::DestructuredConst<'tcx>> {
|
||||
/// Destructure a type-level constant ADT or array into its variant index and its field values.
|
||||
query destructure_const(key: ty::Const<'tcx>) -> ty::DestructuredConst<'tcx> {
|
||||
desc { "destructuring type level constant"}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue