File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -978,7 +978,8 @@ rustc_queries! {
978
978
desc { "converting type-level constant value to mir constant value" }
979
979
}
980
980
981
- /// Destructure a type-level constant ADT or array into its variant index and its field values.
981
+ /// Destructures array, ADT or tuple constants into the constants
982
+ /// of their fields.
982
983
query destructure_const( key: ty:: Const <' tcx>) -> ty:: DestructuredConst <' tcx> {
983
984
desc { "destructuring type level constant" }
984
985
}
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ use rustc_target::abi::VariantIdx;
3
3
4
4
use std:: iter;
5
5
6
- /// Tries to destructure array, ADT or tuple constants into the constants
7
- /// of its fields.
6
+ /// Destructures array, ADT or tuple constants into the constants
7
+ /// of their fields.
8
8
pub ( crate ) fn destructure_const < ' tcx > (
9
9
tcx : TyCtxt < ' tcx > ,
10
10
const_ : ty:: Const < ' tcx > ,
You can’t perform that action at this time.
0 commit comments