about summary refs log tree commit diff
diff options
context:
space:
mode:
author1000teslas <47207223+1000teslas@users.noreply.github.com>2021-01-09 20:02:47 +1100
committer1000teslas <47207223+1000teslas@users.noreply.github.com>2021-01-10 16:47:41 +1100
commit757bd23503e16311190c943efba093d70d6b3454 (patch)
tree8d4fb069e838c913bab1b32c2e77e5e510935063
parent9e345a58936edc81acf09d89675f71711f3d2439 (diff)
downloadrust-757bd23503e16311190c943efba093d70d6b3454.tar.gz
rust-757bd23503e16311190c943efba093d70d6b3454.zip
Remove trailing whitespace
-rw-r--r--compiler/rustc_mir/src/borrow_check/diagnostics/conflict_errors.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/compiler/rustc_mir/src/borrow_check/diagnostics/conflict_errors.rs b/compiler/rustc_mir/src/borrow_check/diagnostics/conflict_errors.rs
index 85ea70cefba..49cdf8c3cbe 100644
--- a/compiler/rustc_mir/src/borrow_check/diagnostics/conflict_errors.rs
+++ b/compiler/rustc_mir/src/borrow_check/diagnostics/conflict_errors.rs
@@ -1331,11 +1331,13 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
             }
             ConstraintCategory::CallArgument => {
                 fr_name.highlight_region_name(&mut err);
-                if matches!(use_span.generator_kind(), Some(generator_kind) 
+                if matches!(use_span.generator_kind(), Some(generator_kind)
                     if matches!(generator_kind, GeneratorKind::Async(_)))
                 {
-                    err.note("async blocks are not executed immediately and either must take a \
-                    reference or ownership of outside variables they use");
+                    err.note(
+                        "async blocks are not executed immediately and either must take a \
+                    reference or ownership of outside variables they use",
+                    );
                     err.help("see https://rust-lang.github.io/async-book/03_async_await/01_chapter.html#awaiting-on-a-multithreaded-executor \
                         for more information");
                 } else {