Rollup merge of #118429 - cuviper:its-arguments, r=compiler-errors
Fix a typo in a `format_args!` note
This commit is contained in:
commit
0687dcb056
@ -2352,7 +2352,7 @@ fn visit_expr(&mut self, expr: &'tcx hir::Expr<'tcx>) {
|
|||||||
Applicability::MaybeIncorrect,
|
Applicability::MaybeIncorrect,
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
err.note("the result of `format_args!` can only be assigned directly if no placeholders in it's arguments are used");
|
err.note("the result of `format_args!` can only be assigned directly if no placeholders in its arguments are used");
|
||||||
err.note("to learn more, visit <https://doc.rust-lang.org/std/macro.format_args.html>");
|
err.note("to learn more, visit <https://doc.rust-lang.org/std/macro.format_args.html>");
|
||||||
}
|
}
|
||||||
suggested = true;
|
suggested = true;
|
||||||
|
@ -9,7 +9,7 @@ LL | let x = format_args!("a {} {} {}.", 1, format_args!("b{}!", 2), 3);
|
|||||||
LL | bar(x);
|
LL | bar(x);
|
||||||
| - borrow later used here
|
| - borrow later used here
|
||||||
|
|
|
|
||||||
= note: the result of `format_args!` can only be assigned directly if no placeholders in it's arguments are used
|
= note: the result of `format_args!` can only be assigned directly if no placeholders in its arguments are used
|
||||||
= note: to learn more, visit <https://doc.rust-lang.org/std/macro.format_args.html>
|
= note: to learn more, visit <https://doc.rust-lang.org/std/macro.format_args.html>
|
||||||
= note: this error originates in the macro `format_args` (in Nightly builds, run with -Z macro-backtrace for more info)
|
= note: this error originates in the macro `format_args` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ LL |
|
|||||||
LL | bar(foo);
|
LL | bar(foo);
|
||||||
| --- borrow later used here
|
| --- borrow later used here
|
||||||
|
|
|
|
||||||
= note: the result of `format_args!` can only be assigned directly if no placeholders in it's arguments are used
|
= note: the result of `format_args!` can only be assigned directly if no placeholders in its arguments are used
|
||||||
= note: to learn more, visit <https://doc.rust-lang.org/std/macro.format_args.html>
|
= note: to learn more, visit <https://doc.rust-lang.org/std/macro.format_args.html>
|
||||||
= note: this error originates in the macro `format_args` (in Nightly builds, run with -Z macro-backtrace for more info)
|
= note: this error originates in the macro `format_args` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user