1
Fork 0

Name the destructure_mir_constant query appropriately

This commit is contained in:
Oli Scherer 2023-07-05 15:51:52 +00:00
parent 46cce98134
commit 8ac1a67d11
4 changed files with 6 additions and 6 deletions

View file

@ -1088,7 +1088,7 @@ rustc_queries! {
/// Tries to destructure an `mir::ConstantKind` ADT or array into its variant index
/// and its field values. This should only be used for pretty printing.
query try_destructure_mir_constant(
query try_destructure_mir_constant_for_diagnostics(
key: (ConstValue<'tcx>, Ty<'tcx>)
) -> Option<mir::DestructuredConstant<'tcx>> {
desc { "destructuring MIR constant"}