Skip to content

Commit 253af96

Browse files
committed
Fix formatting
1 parent af623de commit 253af96

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/shims/env.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ use rustc_mir::interpret::Memory;
33

44
use crate::*;
55

6-
pub(crate) fn alloc_env_value<'mir, 'tcx>(bytes: &[u8], memory: &mut Memory<'mir, 'tcx, Evaluator<'tcx>>, tcx: &TyCtxt<'tcx>) -> Pointer<Tag> {
6+
pub(crate) fn alloc_env_value<'mir, 'tcx>(
7+
bytes: &[u8],
8+
memory: &mut Memory<'mir, 'tcx, Evaluator<'tcx>>,
9+
tcx: &TyCtxt<'tcx>,
10+
) -> Pointer<Tag> {
711
let length = bytes.len() as u64;
812
// `+1` for the null terminator.
913
let ptr = memory.allocate(

tests/compiletest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ fn run_tests(mode: &str, path: &str, target: &str, mut flags: Vec<String>) {
3737
flags.push(format!("--sysroot {}", sysroot));
3838
}
3939

40-
// Add a test env var to do evironment communication tests
40+
// Add a test env var to do environment communication tests
4141
std::env::set_var("MIRI_ENV_VAR_TEST", "0");
4242

4343
// The rest of the configuration.

0 commit comments

Comments
 (0)