Skip to content

Commit 2176bf6

Browse files
Aaron1011RalfJung
andauthored
Fix nits
Co-Authored-By: Ralf Jung <post@ralfj.de>
1 parent 3102129 commit 2176bf6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/eval.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub struct MiriConfig {
3232
/// Returns a freshly created `InterpCx`, along with an `MPlaceTy` representing
3333
/// the location where the return value of the `start` lang item will be
3434
/// written to.
35-
/// Used by `priroda` and `miri
35+
/// Public because this is also used by `priroda`.
3636
pub fn create_ecx<'mir, 'tcx: 'mir>(
3737
tcx: TyCtxt<'tcx>,
3838
main_id: DefId,
@@ -178,7 +178,7 @@ pub fn create_ecx<'mir, 'tcx: 'mir>(
178178

179179
/// Evaluates the main function specified by `main_id`.
180180
/// Returns `Some(return_code)` if program executed completed.
181-
/// Returns `None` if an evaluation error occured
181+
/// Returns `None` if an evaluation error occured.
182182
pub fn eval_main<'tcx>(tcx: TyCtxt<'tcx>, main_id: DefId, config: MiriConfig) -> Option<i64> {
183183
let (mut ecx, ret_ptr) = match create_ecx(tcx, main_id, config) {
184184
Ok(v) => v,
@@ -209,7 +209,7 @@ pub fn eval_main<'tcx>(tcx: TyCtxt<'tcx>, main_id: DefId, config: MiriConfig) ->
209209
if !ignore_leaks && leaks != 0 {
210210
tcx.sess.err("the evaluated program leaked memory");
211211
// Ignore the provided return code - let the reported error
212-
// determine the return code
212+
// determine the return code.
213213
return None;
214214
}
215215
return Some(return_code)
@@ -260,7 +260,7 @@ pub fn eval_main<'tcx>(tcx: TyCtxt<'tcx>, main_id: DefId, config: MiriConfig) ->
260260
trace!(" local {}: {:?}", i, local.value);
261261
}
262262
}
263-
// Let the reported error determine the return code
263+
// Let the reported error determine the return code.
264264
return None;
265265
}
266266
}

0 commit comments

Comments
 (0)