We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c1073fb + aa19679 commit f3dfaa7Copy full SHA for f3dfaa7
src/tools/miri/src/eval.rs
@@ -386,10 +386,9 @@ pub fn create_ecx<'mir, 'tcx: 'mir>(
386
387
let main_ptr = ecx.fn_ptr(FnVal::Instance(entry_instance));
388
389
- // Inlining of `DEFAULT` from
390
- // https://github.com/rust-lang/rust/blob/master/compiler/rustc_session/src/config/sigpipe.rs.
391
// Always using DEFAULT is okay since we don't support signals in Miri anyway.
392
- let sigpipe = 2;
+ // (This means we are effectively ignoring `#[unix_sigpipe]`.)
+ let sigpipe = rustc_session::config::sigpipe::DEFAULT;
393
394
ecx.call_function(
395
start_instance,
0 commit comments