Skip to content

Commit 9cdc932

Browse files
committed
Address review comments
1 parent a91bad6 commit 9cdc932

File tree

1 file changed

+2
-4
lines changed
  • src/librustc_middle/mir/interpret

1 file changed

+2
-4
lines changed

src/librustc_middle/mir/interpret/error.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -439,9 +439,6 @@ impl fmt::Debug for UndefinedBehaviorInfo {
439439
/// to do according to the Rust spec, but due to limitations in the interpreter, the
440440
/// operation could not be carried out. These limitations can differ between CTFE and the
441441
/// Miri engine, e.g., CTFE does not support dereferencing pointers at integral addresses.
442-
///
443-
/// Currently, we also use this as fall-back error kind for errors that have not been
444-
/// categorized yet.
445442
pub enum UnsupportedOpInfo {
446443
/// Free-form case. Only for errors that are never caught!
447444
Unsupported(String),
@@ -451,8 +448,9 @@ pub enum UnsupportedOpInfo {
451448
NoMirFor(DefId),
452449
/// Encountered a pointer where we needed raw bytes.
453450
ReadPointerAsBytes,
454-
451+
//
455452
// The variants below are only reachable from CTFE/const prop, miri will never emit them.
453+
//
456454
/// Encountered raw bytes where we needed a pointer.
457455
ReadBytesAsPointer,
458456
}

0 commit comments

Comments
 (0)