]> git.lizzy.rs Git - rust.git/commitdiff
Fix formatting
authorChristian Poveda <christianpoveda@protonmail.com>
Wed, 7 Aug 2019 14:10:39 +0000 (09:10 -0500)
committerChristian Poveda <christianpoveda@protonmail.com>
Wed, 7 Aug 2019 15:50:46 +0000 (10:50 -0500)
src/shims/env.rs
tests/compiletest.rs

index 0cb8c9c370c3c3933bc4cf910c533d0b718b1e8d..56d2bd4b3d3e264b0c6084a889743d6ec57652b3 100644 (file)
@@ -3,7 +3,11 @@
 
 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(
index c5fba3d46e2f3e44bc710a5a4b3113c85c85a0c9..f61faa9fcc61fd831e66df9825fc82d76b4a0f01 100644 (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.