We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
UndefinedBehaviorInfo::ValidationFailure
1 parent b877240 commit 19fddc0Copy full SHA for 19fddc0
compiler/rustc_middle/src/mir/interpret/error.rs
@@ -257,6 +257,8 @@ pub enum UndefinedBehaviorInfo<'tcx> {
257
/// Should only be thrown by `validity.rs` and always point out which part of the value
258
/// is the problem.
259
ValidationFailure {
260
+ /// The "path" to the value in question, e.g. `.0[5].field` for a struct
261
+ /// field in the 6th element of an array that is the first element of a tuple.
262
path: Option<String>,
263
msg: String,
264
},
0 commit comments