Skip to content

Commit 625763f

Browse files
committed
make the backtrace field of EvalError private
This also makes sure people don't contruct these the wrong way
1 parent ca1bcfd commit 625763f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/mir/interpret/error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ pub fn struct_error<'a, 'gcx, 'tcx>(
182182
#[derive(Debug, Clone)]
183183
pub struct EvalError<'tcx> {
184184
pub kind: InterpError<'tcx, u64>,
185-
pub backtrace: Option<Box<Backtrace>>,
185+
backtrace: Option<Box<Backtrace>>,
186186
}
187187

188188
impl<'tcx> EvalError<'tcx> {

0 commit comments

Comments
 (0)