about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2020-04-30 17:05:36 +0200
committerOliver Scherer <github35764891676564198441@oli-obk.de>2020-04-30 17:06:11 +0200
commit9cdc9321fd5af26c6d3cee40f98f799b3bc5a0c2 (patch)
treea9fcaa6739e1bd17d9f2b5aaf6cfcffed7aabfeb /src
parenta91bad6542e40805b68fc9841fdee59a015fca2b (diff)
downloadrust-9cdc9321fd5af26c6d3cee40f98f799b3bc5a0c2.tar.gz
rust-9cdc9321fd5af26c6d3cee40f98f799b3bc5a0c2.zip
Address review comments
Diffstat (limited to 'src')
-rw-r--r--src/librustc_middle/mir/interpret/error.rs6
1 files changed, 2 insertions, 4 deletions
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,
 }