make the backtrace field of EvalError private

This also makes sure people don't contruct these the wrong way
This commit is contained in:
Ralf Jung 2019-06-07 13:48:38 +02:00
parent ca1bcfdde3
commit 625763fddd

View file

@ -182,7 +182,7 @@ pub fn struct_error<'a, 'gcx, 'tcx>(
#[derive(Debug, Clone)]
pub struct EvalError<'tcx> {
pub kind: InterpError<'tcx, u64>,
pub backtrace: Option<Box<Backtrace>>,
backtrace: Option<Box<Backtrace>>,
}
impl<'tcx> EvalError<'tcx> {