rust/compiler/rustc_ast_pretty/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
..
pp Pretty print ItemKind::Use in rustfmt style 2022-02-07 21:51:05 -08:00
pprust Auto merge of #106745 - m-ou-se:format-args-ast, r=oli-obk 2023-01-26 12:44:47 +00:00
helpers.rs Prefer doc comments over //-comments in compiler 2022-11-27 11:19:04 +00:00
lib.rs Add diagnostic translation lints to crates that don't emit them 2022-08-18 19:29:02 +01:00
pp.rs fix most compiler/ doctests 2022-05-02 17:40:30 -07:00