rust/compiler/rustc_builtin_macros/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
..
assert Expand format_args!() in rust_ast_lowering. 2023-01-12 00:25:45 +01:00
deriving Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoerister 2023-01-21 07:49:09 +00:00
format_foreign Use as_deref in compiler (but only where it makes sense) 2022-11-16 21:58:58 +00:00
alloc_error_handler.rs remove unnecessary uses of clone 2022-12-13 02:06:24 +09:00
asm.rs rustc: Remove needless lifetimes 2022-12-20 22:10:40 +01:00
assert.rs Split MacArgs in two. 2022-11-22 09:04:15 +11:00
cfg.rs Migrate all diagnostics 2022-10-23 10:09:44 +02:00
cfg_accessible.rs Avoid unnecessary MetaItem/Attribute conversions. 2022-11-29 12:08:57 +11:00
cfg_eval.rs Workaround unstable stmt_expr_attributes for method receiver expressions. 2022-10-23 09:27:12 +00:00
cmdline_attrs.rs make mk_attr_id part of ParseSess 2022-09-14 08:49:10 +08:00
compile_error.rs check_doc_keyword: don't alloc string for emptiness check 2022-04-08 11:45:57 +03:00
concat.rs Rollup merge of #105537 - kadiwa4:remove_some_imports, r=fee1-dead 2022-12-11 09:51:57 +01:00
concat_bytes.rs Rollup merge of #105620 - TaKO8Ki:remove-unnecessary-uses-of-clone, r=compiler-errors 2022-12-13 01:17:10 +01:00
concat_idents.rs Remove TreeAndSpacing. 2022-07-29 15:52:15 +10:00
derive.rs Remove token::Lit from ast::MetaItemLit. 2022-12-02 13:49:19 +11:00
edition_panic.rs Prefer doc comments over //-comments in compiler 2022-11-27 11:19:04 +00:00
env.rs Remove double spaces after dots in comments 2023-01-17 08:09:33 +00:00
format.rs Auto merge of #106745 - m-ou-se:format-args-ast, r=oli-obk 2023-01-26 12:44:47 +00:00
format_foreign.rs Remove double spaces after dots in comments 2023-01-17 08:09:33 +00:00
global_allocator.rs remove redundant clone 2022-12-18 00:29:25 +01:00
lib.rs Add unstable type_ascribe macro 2022-11-19 22:16:42 +01:00
log_syntax.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
proc_macro_harness.rs Rename Rptr to Ref in AST and HIR 2022-12-28 18:52:36 +01:00
source_util.rs Prefer doc comments over //-comments in compiler 2022-11-27 11:19:04 +00:00
standard_library_imports.rs Avoid more MetaItem-to-Attribute conversions. 2022-11-29 18:43:53 +11:00
test.rs avoid .into() conversion to identical types 2022-12-18 16:20:32 +01:00
test_harness.rs rustc_builtin_macros: remove ref patterns 2022-12-06 14:45:58 +00:00
trace_macros.rs Remove TreeAndSpacing. 2022-07-29 15:52:15 +10:00
type_ascribe.rs Add unstable type_ascribe macro 2022-11-19 22:16:42 +01:00
util.rs Avoid unnecessary MetaItem/Attribute conversions. 2022-11-29 12:08:57 +11:00