Skip to content

Commit be59349

Browse files
committed
less unsupported errors in Miri, and clarifying comments
1 parent 238da08 commit be59349

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/diagnostics.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -229,13 +229,13 @@ pub fn report_error<'tcx, 'mir>(
229229
Unsupported(
230230
UnsupportedOpInfo::ThreadLocalStatic(_) |
231231
UnsupportedOpInfo::ReadExternStatic(_) |
232-
UnsupportedOpInfo::PartialPointerOverwrite(_) | // we make memory uninit instead
232+
UnsupportedOpInfo::PartialPointerOverwrite(_) |
233+
UnsupportedOpInfo::PartialPointerCopy(_) |
233234
UnsupportedOpInfo::ReadPointerAsBytes
234235
) =>
235236
panic!("Error should never be raised by Miri: {kind:?}", kind = e.kind()),
236237
Unsupported(
237-
UnsupportedOpInfo::Unsupported(_) |
238-
UnsupportedOpInfo::PartialPointerCopy(_)
238+
UnsupportedOpInfo::Unsupported(_)
239239
) =>
240240
vec![(None, format!("this is likely not a bug in the program; it indicates that the program performed an operation that the interpreter does not support"))],
241241
UndefinedBehavior(UndefinedBehaviorInfo::AlignmentCheckFailed { .. })

0 commit comments

Comments
 (0)