Reword inline assembly error.

This commit is contained in:
Scott Olson 2016-09-28 11:48:43 -06:00
parent 787feaad4b
commit 870bb4d862
2 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@ pub enum EvalError<'tcx> {
VtableForArgumentlessMethod,
ModifiedConstantMemory,
AssumptionNotHeld,
Assembler,
InlineAsm,
}
pub type EvalResult<'tcx, T> = Result<T, EvalError<'tcx>>;
@ -104,8 +104,8 @@ impl<'tcx> Error for EvalError<'tcx> {
"tried to modify constant memory",
EvalError::AssumptionNotHeld =>
"`assume` argument was false",
EvalError::Assembler =>
"cannot evaluate assembler code",
EvalError::InlineAsm =>
"cannot evaluate inline assembly",
}
}

View File

@ -661,7 +661,7 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
}
}
InlineAsm { .. } => return Err(EvalError::Assembler),
InlineAsm { .. } => return Err(EvalError::InlineAsm),
}
Ok(())