提交 19fddc01 编写于 作者: R Rémy Rakic

Improve documentation on `UndefinedBehaviorInfo::ValidationFailure`

上级 b8772405
......@@ -257,6 +257,8 @@ pub enum UndefinedBehaviorInfo<'tcx> {
/// Should only be thrown by `validity.rs` and always point out which part of the value
/// is the problem.
ValidationFailure {
/// The "path" to the value in question, e.g. `.0[5].field` for a struct
/// field in the 6th element of an array that is the first element of a tuple.
path: Option<String>,
msg: String,
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册