@@ -834,6 +834,30 @@ LL - println!("{}", format!("{}", local_i32));
834834LL + println!("{}", format!("{local_i32}"));
835835 |
836836
837+ error: variables can be used directly in the `format!` string
838+ --> $DIR/uninlined_format_args.rs:127:5
839+ |
840+ LL | my_println!("{}", local_i32);
841+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
842+ |
843+ help: change this to
844+ |
845+ LL - my_println!("{}", local_i32);
846+ LL + my_println!("{local_i32}");
847+ |
848+
849+ error: variables can be used directly in the `format!` string
850+ --> $DIR/uninlined_format_args.rs:128:5
851+ |
852+ LL | my_println_args!("{}", local_i32);
853+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
854+ |
855+ help: change this to
856+ |
857+ LL - my_println_args!("{}", local_i32);
858+ LL + my_println_args!("{local_i32}");
859+ |
860+
837861error: variables can be used directly in the `format!` string
838862 --> $DIR/uninlined_format_args.rs:144:5
839863 |
@@ -893,7 +917,7 @@ LL + panic!("p3 {local_i32}");
893917 |
894918
895919error: variables can be used directly in the `format!` string
896- --> $DIR/uninlined_format_args.rs:181 :5
920+ --> $DIR/uninlined_format_args.rs:177 :5
897921 |
898922LL | println!("expand='{}'", local_i32);
899923 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -904,5 +928,65 @@ LL - println!("expand='{}'", local_i32);
904928LL + println!("expand='{local_i32}'");
905929 |
906930
907- error: aborting due to 76 previous errors
931+ error: variables can be used directly in the `format!` string
932+ --> $DIR/uninlined_format_args.rs:222:5
933+ |
934+ LL | my_println2_args!(true, "{}", local_i32);
935+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
936+ |
937+ help: change this to
938+ |
939+ LL - my_println2_args!(true, "{}", local_i32);
940+ LL + my_println2_args!(true, "{local_i32}");
941+ |
942+
943+ error: variables can be used directly in the `format!` string
944+ --> $DIR/uninlined_format_args.rs:223:5
945+ |
946+ LL | my_println2!(true, "{}", local_i32);
947+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
948+ |
949+ help: change this to
950+ |
951+ LL - my_println2!(true, "{}", local_i32);
952+ LL + my_println2!(true, "{local_i32}");
953+ |
954+
955+ error: variables can be used directly in the `format!` string
956+ --> $DIR/uninlined_format_args.rs:225:5
957+ |
958+ LL | my_bad_macro!("{}", local_i32);
959+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
960+ |
961+ help: change this to
962+ |
963+ LL - my_bad_macro!("{}", local_i32);
964+ LL + my_bad_macro!("{local_i32}");
965+ |
966+
967+ error: variables can be used directly in the `format!` string
968+ --> $DIR/uninlined_format_args.rs:227:5
969+ |
970+ LL | my_good_macro!("{}", local_i32);
971+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
972+ |
973+ help: change this to
974+ |
975+ LL - my_good_macro!("{}", local_i32);
976+ LL + my_good_macro!("{local_i32}");
977+ |
978+
979+ error: variables can be used directly in the `format!` string
980+ --> $DIR/uninlined_format_args.rs:228:5
981+ |
982+ LL | my_good_macro!("{}", local_i32, );
983+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
984+ |
985+ help: change this to
986+ |
987+ LL - my_good_macro!("{}", local_i32, );
988+ LL + my_good_macro!("{local_i32}", );
989+ |
990+
991+ error: aborting due to 83 previous errors
908992
0 commit comments