Fix formatting

This commit is contained in:
Christian Poveda 2019-08-07 09:10:39 -05:00
parent af623dede2
commit 253af9692a
2 changed files with 6 additions and 2 deletions

View file

@ -3,7 +3,11 @@ use rustc_mir::interpret::Memory;
use crate::*;
pub(crate) fn alloc_env_value<'mir, 'tcx>(bytes: &[u8], memory: &mut Memory<'mir, 'tcx, Evaluator<'tcx>>, tcx: &TyCtxt<'tcx>) -> Pointer<Tag> {
pub(crate) fn alloc_env_value<'mir, 'tcx>(
bytes: &[u8],
memory: &mut Memory<'mir, 'tcx, Evaluator<'tcx>>,
tcx: &TyCtxt<'tcx>,
) -> Pointer<Tag> {
let length = bytes.len() as u64;
// `+1` for the null terminator.
let ptr = memory.allocate(

View file

@ -37,7 +37,7 @@ fn run_tests(mode: &str, path: &str, target: &str, mut flags: Vec<String>) {
flags.push(format!("--sysroot {}", sysroot));
}
// Add a test env var to do evironment communication tests
// Add a test env var to do environment communication tests
std::env::set_var("MIRI_ENV_VAR_TEST", "0");
// The rest of the configuration.