rust/compiler/rustc_ast/src
bors 3e97763872 Auto merge of #106745 - m-ou-se:format-args-ast, r=oli-obk
Move format_args!() into AST (and expand it during AST lowering)

Implements https://github.com/rust-lang/compiler-team/issues/541

This moves FormatArgs from rustc_builtin_macros to rustc_ast_lowering. For now, the end result is the same. But this allows for future changes to do smarter things with format_args!(). It also allows Clippy to directly access the ast::FormatArgs, making things a lot easier.

This change turns the format args types into lang items. The builtin macro used to refer to them by their path. After this change, the path is no longer relevant, making it easier to make changes in `core`.

This updates clippy to use the new language items, but this doesn't yet make clippy use the ast::FormatArgs structure that's now available. That should be done after this is merged.
2023-01-26 12:44:47 +00:00
..
attr Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
expand Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
util Auto merge of #106745 - m-ou-se:format-args-ast, r=oli-obk 2023-01-26 12:44:47 +00:00
ast_traits.rs Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
ast.rs Auto merge of #106745 - m-ou-se:format-args-ast, r=oli-obk 2023-01-26 12:44:47 +00:00
entry.rs Fixup missing renames from #[main] to #[rustc_main] 2022-06-22 18:24:09 +02:00
format.rs Work around issue 106930. 2023-01-24 16:44:00 +01:00
lib.rs Expand format_args!() in rust_ast_lowering. 2023-01-12 00:25:45 +01:00
mut_visit.rs Auto merge of #106745 - m-ou-se:format-args-ast, r=oli-obk 2023-01-26 12:44:47 +00:00
node_id.rs A few small cleanups for newtype_index 2022-12-18 21:47:28 +01:00
ptr.rs compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
token.rs Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
tokenstream.rs Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
visit.rs Auto merge of #106745 - m-ou-se:format-args-ast, r=oli-obk 2023-01-26 12:44:47 +00:00