From 9cdc9321fd5af26c6d3cee40f98f799b3bc5a0c2 Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Thu, 30 Apr 2020 17:05:36 +0200 Subject: Address review comments --- src/librustc_middle/mir/interpret/error.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/librustc_middle/mir/interpret/error.rs b/src/librustc_middle/mir/interpret/error.rs index 15b1b7ce526..7b222121245 100644 --- a/src/librustc_middle/mir/interpret/error.rs +++ b/src/librustc_middle/mir/interpret/error.rs @@ -439,9 +439,6 @@ impl fmt::Debug for UndefinedBehaviorInfo { /// to do according to the Rust spec, but due to limitations in the interpreter, the /// operation could not be carried out. These limitations can differ between CTFE and the /// Miri engine, e.g., CTFE does not support dereferencing pointers at integral addresses. -/// -/// Currently, we also use this as fall-back error kind for errors that have not been -/// categorized yet. pub enum UnsupportedOpInfo { /// Free-form case. Only for errors that are never caught! Unsupported(String), @@ -451,8 +448,9 @@ pub enum UnsupportedOpInfo { NoMirFor(DefId), /// Encountered a pointer where we needed raw bytes. ReadPointerAsBytes, - + // // The variants below are only reachable from CTFE/const prop, miri will never emit them. + // /// Encountered raw bytes where we needed a pointer. ReadBytesAsPointer, } -- cgit 1.4.1-3-g733a5