Skip to content

Commit d048b15

Browse files
committed
Improve doc comment of destructure_const
1 parent 053f48d commit d048b15

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

compiler/rustc_middle/src/query/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,8 @@ rustc_queries! {
978978
desc { "converting type-level constant value to mir constant value"}
979979
}
980980

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.
982983
query destructure_const(key: ty::Const<'tcx>) -> ty::DestructuredConst<'tcx> {
983984
desc { "destructuring type level constant"}
984985
}

compiler/rustc_ty_utils/src/consts.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use rustc_target::abi::VariantIdx;
33

44
use std::iter;
55

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.
88
pub(crate) fn destructure_const<'tcx>(
99
tcx: TyCtxt<'tcx>,
1010
const_: ty::Const<'tcx>,

0 commit comments

Comments
 (0)