File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/librustc_middle/mir/interpret Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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.
445442pub 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}
You can’t perform that action at this time.
0 commit comments