Improve documentation on UndefinedBehaviorInfo::ValidationFailure
This commit is contained in:
parent
b87724053e
commit
19fddc019f
1 changed files with 2 additions and 0 deletions
|
@ -257,6 +257,8 @@ pub enum UndefinedBehaviorInfo<'tcx> {
|
||||||
/// Should only be thrown by `validity.rs` and always point out which part of the value
|
/// Should only be thrown by `validity.rs` and always point out which part of the value
|
||||||
/// is the problem.
|
/// is the problem.
|
||||||
ValidationFailure {
|
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>,
|
path: Option<String>,
|
||||||
msg: String,
|
msg: String,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue