diff --git a/src/librustc/hir/map/def_collector.rs b/src/librustc/hir/map/def_collector.rs index b80c7445624..cf832aee534 100644 --- a/src/librustc/hir/map/def_collector.rs +++ b/src/librustc/hir/map/def_collector.rs @@ -358,4 +358,4 @@ impl<'a> visit::Visitor<'a> for DefCollector<'a> { } } } -} \ No newline at end of file +} diff --git a/src/test/run-pass/async-await.rs b/src/test/run-pass/async-await.rs index 9d004ea4574..f692f57abb9 100644 --- a/src/test/run-pass/async-await.rs +++ b/src/test/run-pass/async-await.rs @@ -71,7 +71,7 @@ fn async_block_with_borrow_named_lifetime<'a>(x: &'a u8) -> impl Future impl Future { @@ -115,7 +115,7 @@ fn async_fn_with_impl_future_named_lifetime<'a>(x: &'a u8) -> impl Future(x: &'a u8, _y: &'a u8) -> u8 { await!(wake_and_yield_once()); - *x + *x } fn async_fn_with_internal_borrow(y: u8) -> impl Future { @@ -169,7 +169,7 @@ fn main() { 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 @@ fn main() { 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 @@ fn main() { 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)) }