diff --git a/src/eval.rs b/src/eval.rs index bf04e427131..e85a20d3879 100644 --- a/src/eval.rs +++ b/src/eval.rs @@ -292,7 +292,10 @@ pub fn create_ecx<'mir, 'tcx: 'mir>( let main_ptr = ecx.create_fn_alloc_ptr(FnVal::Instance(entry_instance)); - let sigpipe = 2; // Inlining of `DEFAULT` from https://github.com/rust-lang/rust/blob/master/compiler/rustc_session/src/config/sigpipe.rs + // Inlining of `DEFAULT` from + // https://github.com/rust-lang/rust/blob/master/compiler/rustc_session/src/config/sigpipe.rs. + // Alaways using DEFAULT is okay since we don't support signals in Miri anyway. + let sigpipe = 2; ecx.call_function( start_instance, diff --git a/src/shims/windows/foreign_items.rs b/src/shims/windows/foreign_items.rs index 05014a3331d..88129ed8857 100644 --- a/src/shims/windows/foreign_items.rs +++ b/src/shims/windows/foreign_items.rs @@ -294,8 +294,8 @@ fn emulate_foreign_item_by_name( let flags = this.read_scalar(flags)?.to_u32()?; match flags { 0 => { - // BCRYPT_RNG_ALG_HANDLE if algorithm != 0x81 { + // BCRYPT_RNG_ALG_HANDLE throw_unsup_format!( "BCryptGenRandom algorithm must be BCRYPT_RNG_ALG_HANDLE when the flag is 0" );