about summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/src/format.rs
AgeCommit message (Expand)AuthorLines
2023-08-05Add suggestion to quote inlined format argument as string literalSebastian Toh-12/+28
2023-07-30inline format!() args up to and including rustc_middleMatthias Krüger-4/+4
2023-06-07Remove accidental commentclubby789-3/+0
2023-05-16Avoid `&format("...")` calls in error message code.Nicholas Nethercote-1/+1
2023-05-03Restrict `From<S>` for `{D,Subd}iagnosticMessage`.Nicholas Nethercote-4/+4
2023-04-16fix clippy::toplevel_ref_arg and ::manual_mapMatthias Krüger-7/+1
2023-04-12Rollup merge of #110153 - DaniPopes:compiler-typos, r=NilstriebMatthias Krüger-1/+1
2023-04-10Migrate most of `rustc_builtin_macros` to diagnostic implsclubby789-97/+78
2023-04-10Fix typos in compilerDaniPopes-1/+1
2023-03-14Properly allow macro expanded `format_args` invocations to uses capturesNilstrieb-35/+44
2023-01-27Replace format flags u32 by enums and bools.Mara Bos-2/+11
2023-01-26Auto merge of #106745 - m-ou-se:format-args-ast, r=oli-obkbors-12/+10
2023-01-17Remove double spaces after dots in commentsMaybe Waffle-1/+1
2023-01-12Update comment explaining format_args!() expansion.Mara Bos-4/+4
2023-01-12Expand format_args!() in rust_ast_lowering.Mara Bos-8/+6
2023-01-02Update format.rsGimbles-1/+1
2022-12-06Box `rustc_parse_format::Piece::NextArgument`Maybe Waffle-1/+1
2022-09-30Fix format_args capture for macro expanded format stringsAlex Macleod-3/+3
2022-09-27Remove confusing drop.Mara Bos-1/+0
2022-09-27Turn format arguments Vec into its own struct.Mara Bos-71/+48
2022-09-27Add clarifying comments.Mara Bos-0/+3
2022-09-27Flatten if-let and match into one.Mara Bos-19/+14
2022-09-27Move enum definition closer to its usage.Mara Bos-5/+5
2022-09-27Use if let chain.Mara Bos-4/+2
2022-09-27Tweak comments.Mara Bos-1/+1
2022-09-27Move FormatArgs structure to its own module.Mara Bos-163/+13
2022-09-27Rewrite and refactor format_args!() builtin macro.Mara Bos-1287/+792
2022-08-25Separate CountIsStar from CountIsParam in rustc_parse_format.Mara Bos-6/+6
2022-08-23Rollup merge of #100851 - Alexendoo:rpf-width-prec-spans, r=fee1-deadDylan DPC-11/+16
2022-08-21Fix rustc_parse_format precision & width spansAlex Macleod-11/+16
2022-08-22Remove redundant clonefinalchild-1/+1
2022-08-22Use DiagnosticMessage for BufferedEarlyLint.msgfinalchild-1/+1
2022-08-16Make `ExtCtxt::expr_lit` non-`pub`.Nicholas Nethercote-1/+1
2022-08-08Get rid of named_pos in format_args impl.Mara Bos-5/+1
2022-08-08Simplify format_args builtin macro implementation.Mara Bos-86/+64
2022-08-04Rollup merge of #100058 - TaKO8Ki:suggest-positional-formatting-argument-inst...Matthias Krüger-8/+32
2022-08-04return when captured argument is not a struct fieldTakayuki Maeda-7/+8
2022-08-03suggest a positional formatting argument instead of a captured argumentTakayuki Maeda-8/+31
2022-08-02Rollup merge of #99958 - PrestonFrom:issue_99907, r=compiler-errorsMatthias Krüger-25/+59
2022-08-02Move if-block into closure to reduce duplicate codePreston From-7/+5
2022-08-02Improve position named arguments lint underline and formatting namesPreston From-25/+61
2022-07-31Always include a position span in rustc_parse_format::ArgumentAlex Macleod-6/+8
2022-07-28Use more idiomatic rust, comment for lint logicPreston From-50/+79
2022-07-25Use Span::from_inner and make changes to precision inner span clearerPreston From-16/+14
2022-07-25Generate correct suggestion with named arguments used positionallyPreston From-60/+187
2022-07-20Rollup merge of #99508 - TaKO8Ki:avoid-symbol-to-string-conversion-in-Builtin...Matthias Krüger-3/+1
2022-07-20Fix off by one error and add ui test.miam-miam100-1/+1
2022-07-20avoid a `Symbol` to `String` conversionTakayuki Maeda-3/+1
2022-07-15Only suggest if span is not erroneousMichael Goulet-1/+1
2022-07-15Fix ICE in named_arguments_used_positionally lintMichael Goulet-9/+8