@@ -32,7 +32,7 @@ pub struct MiriConfig {
32
32
/// Returns a freshly created `InterpCx`, along with an `MPlaceTy` representing
33
33
/// the location where the return value of the `start` lang item will be
34
34
/// written to.
35
- /// Used by `priroda` and `miri
35
+ /// Public because this is also used by `priroda`.
36
36
pub fn create_ecx < ' mir , ' tcx : ' mir > (
37
37
tcx : TyCtxt < ' tcx > ,
38
38
main_id : DefId ,
@@ -178,7 +178,7 @@ pub fn create_ecx<'mir, 'tcx: 'mir>(
178
178
179
179
/// Evaluates the main function specified by `main_id`.
180
180
/// Returns `Some(return_code)` if program executed completed.
181
- /// Returns `None` if an evaluation error occured
181
+ /// Returns `None` if an evaluation error occured.
182
182
pub fn eval_main < ' tcx > ( tcx : TyCtxt < ' tcx > , main_id : DefId , config : MiriConfig ) -> Option < i64 > {
183
183
let ( mut ecx, ret_ptr) = match create_ecx ( tcx, main_id, config) {
184
184
Ok ( v) => v,
@@ -209,7 +209,7 @@ pub fn eval_main<'tcx>(tcx: TyCtxt<'tcx>, main_id: DefId, config: MiriConfig) ->
209
209
if !ignore_leaks && leaks != 0 {
210
210
tcx. sess . err ( "the evaluated program leaked memory" ) ;
211
211
// Ignore the provided return code - let the reported error
212
- // determine the return code
212
+ // determine the return code.
213
213
return None ;
214
214
}
215
215
return Some ( return_code)
@@ -260,7 +260,7 @@ pub fn eval_main<'tcx>(tcx: TyCtxt<'tcx>, main_id: DefId, config: MiriConfig) ->
260
260
trace ! ( " local {}: {:?}" , i, local. value) ;
261
261
}
262
262
}
263
- // Let the reported error determine the return code
263
+ // Let the reported error determine the return code.
264
264
return None ;
265
265
}
266
266
}
0 commit comments