diff options
| author | Ralf Jung <post@ralfj.de> | 2022-11-07 19:12:24 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2022-11-07 23:54:49 +0100 |
| commit | 2c15b3c08cbd5d0932b47b1a2361470562113384 (patch) | |
| tree | 89aec67e5e86883d13e16f5d7813482c14973d32 /src | |
| parent | ccc6ffb03dcfeba1d3a91aa24a2cb094350605ec (diff) | |
| download | rust-2c15b3c08cbd5d0932b47b1a2361470562113384.tar.gz rust-2c15b3c08cbd5d0932b47b1a2361470562113384.zip | |
less unsupported errors in Miri, and clarifying comments
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/miri/src/diagnostics.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/miri/src/diagnostics.rs b/src/tools/miri/src/diagnostics.rs index ec81ffd3cd5..0cfa3812e40 100644 --- a/src/tools/miri/src/diagnostics.rs +++ b/src/tools/miri/src/diagnostics.rs @@ -229,13 +229,13 @@ pub fn report_error<'tcx, 'mir>( Unsupported( UnsupportedOpInfo::ThreadLocalStatic(_) | UnsupportedOpInfo::ReadExternStatic(_) | - UnsupportedOpInfo::PartialPointerOverwrite(_) | // we make memory uninit instead + UnsupportedOpInfo::PartialPointerOverwrite(_) | + UnsupportedOpInfo::PartialPointerCopy(_) | UnsupportedOpInfo::ReadPointerAsBytes ) => panic!("Error should never be raised by Miri: {kind:?}", kind = e.kind()), Unsupported( - UnsupportedOpInfo::Unsupported(_) | - UnsupportedOpInfo::PartialPointerCopy(_) + UnsupportedOpInfo::Unsupported(_) ) => 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"))], UndefinedBehavior(UndefinedBehaviorInfo::AlignmentCheckFailed { .. }) |
