Skip to content

Commit

Permalink
review comment: tweak error wording
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed May 28, 2019
1 parent 025a559 commit d72f97d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/librustc_mir/borrow_check/mutability_errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl<'a, 'gcx, 'tcx> MirBorrowckCtxt<'a, 'gcx, 'tcx> {
(Some(desc), _) => format!("`{}`", desc),
(None, Place::Base(PlaceBase::Local(local))) if self.mir.local_decls[*local]
.source_info.span.is_compiler_desugaring(CompilerDesugaringKind::Async)
=> "async `fn` parameter".to_string(),
=> "`async fn` parameter".to_string(),
(None, _) => "temporary place".to_string(),
};
match the_place_err {
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/async-await/issues/issue-61187.stderr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
error[E0596]: cannot borrow async `fn` parameter as mutable, as it is not declared as mutable
error[E0596]: cannot borrow `async fn` parameter as mutable, as it is not declared as mutable
--> $DIR/issue-61187.rs:8:5
|
LL | async fn response(data: Vec<u8>) {
Expand Down

0 comments on commit d72f97d

Please sign in to comment.