Skip to content

Commit d72f97d

Browse files
committed
review comment: tweak error wording
1 parent 025a559 commit d72f97d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc_mir/borrow_check/mutability_errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ impl<'a, 'gcx, 'tcx> MirBorrowckCtxt<'a, 'gcx, 'tcx> {
4949
(Some(desc), _) => format!("`{}`", desc),
5050
(None, Place::Base(PlaceBase::Local(local))) if self.mir.local_decls[*local]
5151
.source_info.span.is_compiler_desugaring(CompilerDesugaringKind::Async)
52-
=> "async `fn` parameter".to_string(),
52+
=> "`async fn` parameter".to_string(),
5353
(None, _) => "temporary place".to_string(),
5454
};
5555
match the_place_err {

src/test/ui/async-await/issues/issue-61187.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0596]: cannot borrow async `fn` parameter as mutable, as it is not declared as mutable
1+
error[E0596]: cannot borrow `async fn` parameter as mutable, as it is not declared as mutable
22
--> $DIR/issue-61187.rs:8:5
33
|
44
LL | async fn response(data: Vec<u8>) {

0 commit comments

Comments
 (0)