1
Fork 0
rust/compiler/rustc_hir/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
..
arena.rs rustc_hir: Change representation of import paths to support multiple resolutions 2022-12-01 18:51:05 +03:00
def.rs Remove double spaces after dots in comments 2023-01-17 08:09:33 +00:00
def_path_hash_map.rs Use on-disk-hash-table format for DefPathHashMap in hir::definitions. 2021-09-14 13:54:41 +02:00
definitions.rs Fix uninlined_format_args for some compiler crates 2023-01-05 19:01:12 +01:00
diagnostic_items.rs Introduce get_diagnostic_name 2021-10-06 08:40:28 -05:00
errors.rs have LangItemError derive everything LangItem does 2022-08-25 11:06:45 -06:00
hir.rs Auto merge of #106745 - m-ou-se:format-args-ast, r=oli-obk 2023-01-26 12:44:47 +00:00
hir_id.rs fix typo LocalItemId -> ItemLocalId 2023-01-11 15:45:52 +03:00
intravisit.rs parse const closures 2023-01-12 02:28:37 +00:00
lang_items.rs Auto merge of #106745 - m-ou-se:format-args-ast, r=oli-obk 2023-01-26 12:44:47 +00:00
lib.rs Separate lifetime ident from resolution in HIR. 2022-11-23 19:33:06 +00:00
pat_util.rs compiler: remove unnecessary imports and qualified paths 2022-12-10 18:45:34 +01:00
stable_hash_impls.rs Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
target.rs Handle generic parameters. 2022-09-09 01:31:46 +00:00
tests.rs Use Symbol for the crate name instead of String/str 2022-12-07 20:30:02 +00:00
weak_lang_items.rs Rewrite implementation of #[alloc_error_handler] 2022-10-31 16:32:57 +00:00