Skip to content

Commit 1ec8b64

Browse files
committed
cargo fmt
1 parent e31e6e0 commit 1ec8b64

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

src/machine.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ pub struct Evaluator<'mir, 'tcx> {
293293
string_cache: FxHashMap<String, measureme::StringId>,
294294

295295
/// Whether to raise a panic in the context of the evaluated process when unsupported
296-
/// functionality is encountered. If `false`, an error is propagated in the Miri application context
296+
/// functionality is encountered. If `false`, an error is propagated in the Miri application context
297297
/// instead (default behavior)
298298
pub(crate) panic_on_unsupported: bool,
299299
}

src/shims/posix/linux/foreign_items.rs

+8-2
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,10 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
183183
futex(this, args, dest)?;
184184
}
185185
id => {
186-
let error_msg = format!("unsupported Miri functionality: syscall ID {} is not emulated", id);
186+
let error_msg = format!(
187+
"unsupported Miri functionality: syscall ID {} is not emulated",
188+
id
189+
);
187190
if this.eval_context_ref().machine.panic_on_unsupported {
188191
// message is slightly different here to make automated analysis easier
189192
this.start_panic(error_msg.as_ref(), StackPopUnwind::NotAllowed)?;
@@ -224,7 +227,10 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
224227
}
225228

226229
_ => {
227-
let error_msg = format!("unsupported Miri functionality: can't call foreign function {:?}", link_name);
230+
let error_msg = format!(
231+
"unsupported Miri functionality: can't call foreign function {:?}",
232+
link_name
233+
);
228234
if this.eval_context_ref().machine.panic_on_unsupported {
229235
// message is slightly different here to make automated analysis easier
230236
this.start_panic(error_msg.as_ref(), StackPopUnwind::NotAllowed)?;

src/shims/posix/macos/foreign_items.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,10 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
157157
}
158158

159159
_ => {
160-
let error_msg = format!("unsupported Miri functionality: can't call foreign function {:?}", link_name);
160+
let error_msg = format!(
161+
"unsupported Miri functionality: can't call foreign function {:?}",
162+
link_name
163+
);
161164
if this.eval_context_ref().machine.panic_on_unsupported {
162165
// message is slightly different here to make automated analysis easier
163166
this.start_panic(error_msg.as_ref(), StackPopUnwind::NotAllowed)?;

src/shims/windows/foreign_items.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,8 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
343343
"CreateThread" => {
344344
check_abi(abi, Abi::System { unwind: false })?;
345345

346-
let error_msg = "unsupported Miri functionality: concurrency is not supported on Windows";
346+
let error_msg =
347+
"unsupported Miri functionality: concurrency is not supported on Windows";
347348
if this.eval_context_ref().machine.panic_on_unsupported {
348349
this.start_panic(error_msg, StackPopUnwind::NotAllowed)?;
349350
return Ok(false);
@@ -423,7 +424,10 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
423424
}
424425

425426
_ => {
426-
let error_msg = format!("unsupported Miri functionality: can't call foreign function {:?}", link_name);
427+
let error_msg = format!(
428+
"unsupported Miri functionality: can't call foreign function {:?}",
429+
link_name
430+
);
427431
if this.eval_context_ref().machine.panic_on_unsupported {
428432
// message is slightly different here to make automated analysis easier
429433
this.start_panic(error_msg.as_ref(), StackPopUnwind::NotAllowed)?;

0 commit comments

Comments
 (0)