We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91d099d commit 9f2c2e5Copy full SHA for 9f2c2e5
clippy_utils/src/higher.rs
@@ -534,6 +534,8 @@ impl FormatExpn<'tcx> {
534
535
/// A parsed `format_args!` expansion
536
pub struct FormatArgsExpn<'tcx> {
537
+ /// The fist argument, the fromat string, as an expr
538
+ pub format_string: &'tcx Expr<'tcx>,
539
/// Span of the first argument, the format string
540
pub format_string_span: Span,
541
/// Values passed after the format string
@@ -590,6 +592,7 @@ impl FormatArgsExpn<'tcx> {
590
592
if let ExprKind::Array(args) = arm.body.kind;
591
593
then {
594
Some(FormatArgsExpn {
595
+ format_string:strs_ref,
596
format_string_span: strs_ref.span,
597
value_args,
598
format_string_parts,
0 commit comments