]> git.lizzy.rs Git - rust.git/commitdiff
Fixup whitespace
authorJakub Kozlowski <mail@jakub-kozlowski.com>
Thu, 6 Sep 2018 21:18:39 +0000 (22:18 +0100)
committerJakub Kozlowski <mail@jakub-kozlowski.com>
Thu, 6 Sep 2018 21:18:39 +0000 (22:18 +0100)
src/librustc/hir/map/def_collector.rs
src/test/run-pass/async-await.rs

index b80c7445624e53f024b21c7071ad419b8865faf0..cf832aee534d4cd6c1fb6e0cbf04cfcf7d4e98d1 100644 (file)
@@ -358,4 +358,4 @@ fn visit_token(&mut self, t: Token) {
             }
         }
     }
-}
\ No newline at end of file
+}
index 9d004ea4574bae30023c4e37b8b662dd86585660..f692f57abb9c3cd80f334410a37e52a40dc157a7 100644 (file)
@@ -71,7 +71,7 @@ fn async_block_with_borrow_named_lifetime<'a>(x: &'a u8) -> impl Future<Output =
     async move {
         await!(wake_and_yield_once());
         *x
-    }  
+    }
 }
 
 fn async_nonmove_block(x: u8) -> impl Future<Output = u8> {
@@ -115,7 +115,7 @@ fn async_fn_with_impl_future_named_lifetime<'a>(x: &'a u8) -> impl Future<Output
 
 async fn async_fn_with_named_lifetime_multiple_args<'a>(x: &'a u8, _y: &'a u8) -> u8 {
     await!(wake_and_yield_once());
-    *x   
+    *x
 }
 
 fn async_fn_with_internal_borrow(y: u8) -> impl Future<Output = u8> {
@@ -169,7 +169,7 @@ macro_rules! test {
 
     macro_rules! test_with_borrow {
         ($($fn_name:expr,)*) => { $(
-            test_future_yields_once_then_returns(|x| { 
+            test_future_yields_once_then_returns(|x| {
                 async move {
                     await!($fn_name(&x))
                 }
@@ -183,11 +183,11 @@ macro_rules! test_with_borrow {
         async_closure,
         async_fn,
         async_fn_with_internal_borrow,
-        |x| { 
-            async move { 
-                unsafe { await!(unsafe_async_fn(x)) } 
-            } 
-        },  
+        |x| {
+            async move {
+                unsafe { await!(unsafe_async_fn(x)) }
+            }
+        },
     }
 
     test_with_borrow! {
@@ -195,7 +195,7 @@ macro_rules! test_with_borrow {
         async_fn_with_borrow,
         async_fn_with_borrow_named_lifetime,
         async_fn_with_impl_future_named_lifetime,
-        |x| { 
+        |x| {
             async move {
                 await!(async_fn_with_named_lifetime_multiple_args(x, x))
             }