Skip to content

Commit 9620521

Browse files
committed
code review fixes
1 parent 5bb06b3 commit 9620521

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/librustc_mir/transform/const_prop.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -257,15 +257,8 @@ impl<'mir, 'tcx> ConstPropagator<'mir, 'tcx> {
257257
Err(error) => {
258258
let diagnostic = error_to_const_error(&self.ecx, error);
259259
use rustc::mir::interpret::InterpError::*;
260-
use rustc::mir::interpret::UnsupportedOpInfo::*;
261260
match diagnostic.error {
262261
Exit(_) => bug!("the CTFE program cannot exit"),
263-
264-
| Unsupported(OutOfTls)
265-
| Unsupported(TlsOutOfBounds)
266-
| Unsupported(PathNotFound(_))
267-
=> bug!("these should not be in rustc, but in miri's machine errors"),
268-
269262
| Unsupported(_) => {},
270263
| UndefinedBehaviour(_) => {},
271264
| InvalidProgram(_) => {},

0 commit comments

Comments
 (0)