提交 d048b152 编写于 作者: D Dominik Stolz

Improve doc comment of destructure_const

上级 053f48d9
...@@ -978,7 +978,8 @@ ...@@ -978,7 +978,8 @@
desc { "converting type-level constant value to mir constant value"} desc { "converting type-level constant value to mir constant value"}
} }
/// Destructure a type-level constant ADT or array into its variant index and its field values. /// Destructures array, ADT or tuple constants into the constants
/// of their fields.
query destructure_const(key: ty::Const<'tcx>) -> ty::DestructuredConst<'tcx> { query destructure_const(key: ty::Const<'tcx>) -> ty::DestructuredConst<'tcx> {
desc { "destructuring type level constant"} desc { "destructuring type level constant"}
} }
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
use std::iter; use std::iter;
/// Tries to destructure array, ADT or tuple constants into the constants /// Destructures array, ADT or tuple constants into the constants
/// of its fields. /// of their fields.
pub(crate) fn destructure_const<'tcx>( pub(crate) fn destructure_const<'tcx>(
tcx: TyCtxt<'tcx>, tcx: TyCtxt<'tcx>,
const_: ty::Const<'tcx>, const_: ty::Const<'tcx>,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册