about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.panic-unwind.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-01-26 12:44:47 +0000
committerbors <bors@rust-lang.org>2023-01-26 12:44:47 +0000
commit6d133152f896f3395b6683d1bf63758150b7efb2 (patch)
treefdb0bdd9e1e5627af687020a6200e2f1606936ef /tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.panic-unwind.diff
parent1d9afb285fe827879a5fa36b8cbfd63c606f1fdf (diff)
parent80d196d789fdd9adb43b474d9a3a74af4633937f (diff)
downloadrust-6d133152f896f3395b6683d1bf63758150b7efb2.tar.gz
rust-6d133152f896f3395b6683d1bf63758150b7efb2.zip
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.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions