Skip to content

Commit

Permalink
Auto merge of #106745 - m-ou-se:format-args-ast, r=oli-obk
Browse files Browse the repository at this point in the history
Move format_args!() into AST (and expand it during AST lowering)

Implements rust-lang/compiler-team#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.
  • Loading branch information
bors committed Jan 26, 2023
2 parents f7c8250 + 32ff9ab commit cca1337
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit cca1337

Please sign in to comment.