Fix formatting
This commit is contained in:
parent
af623dede2
commit
253af9692a
2 changed files with 6 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue