Skip to content

Commit b8cdd43

Browse files
committed
Fix a typo in a format_args! note
1 parent bbefc98 commit b8cdd43

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: compiler/rustc_borrowck/src/diagnostics/conflict_errors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2352,7 +2352,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
23522352
Applicability::MaybeIncorrect,
23532353
);
23542354
} else {
2355-
err.note("the result of `format_args!` can only be assigned directly if no placeholders in it's arguments are used");
2355+
err.note("the result of `format_args!` can only be assigned directly if no placeholders in its arguments are used");
23562356
err.note("to learn more, visit <https://doc.rust-lang.org/std/macro.format_args.html>");
23572357
}
23582358
suggested = true;

Diff for: tests/ui/borrowck/issue-114374-invalid-help-fmt-args.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LL | let x = format_args!("a {} {} {}.", 1, format_args!("b{}!", 2), 3);
99
LL | bar(x);
1010
| - borrow later used here
1111
|
12-
= note: the result of `format_args!` can only be assigned directly if no placeholders in it's arguments are used
12+
= note: the result of `format_args!` can only be assigned directly if no placeholders in its arguments are used
1313
= note: to learn more, visit <https://doc.rust-lang.org/std/macro.format_args.html>
1414
= note: this error originates in the macro `format_args` (in Nightly builds, run with -Z macro-backtrace for more info)
1515

@@ -24,7 +24,7 @@ LL |
2424
LL | bar(foo);
2525
| --- borrow later used here
2626
|
27-
= note: the result of `format_args!` can only be assigned directly if no placeholders in it's arguments are used
27+
= note: the result of `format_args!` can only be assigned directly if no placeholders in its arguments are used
2828
= note: to learn more, visit <https://doc.rust-lang.org/std/macro.format_args.html>
2929
= note: this error originates in the macro `format_args` (in Nightly builds, run with -Z macro-backtrace for more info)
3030

0 commit comments

Comments
 (0)