Skip to content

Commit f29867b

Browse files
committed
Auto merge of #15559 - Veykril:builtin-format-args, r=Veykril
Implement builtin#format_args, using rustc's format_args parser `format_args!` now expands to `builtin#format_args(template, args...)`, the actual expansion now instead happens in lowering where we desugar this expression by using lang paths. As a bonus, we no longer need to evaluate `format_args` as an eager macro which means less macro expansions overall -> less cache thrashing! Fixes #15082
2 parents b9a9722 + 96f1923 commit f29867b

File tree

40 files changed

+2581
-476
lines changed

40 files changed

+2581
-476
lines changed

Cargo.lock

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/hir-def/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ triomphe.workspace = true
3333

3434
rustc_abi = { version = "0.0.20221221", package = "hkalbasi-rustc-ap-rustc_abi", default-features = false }
3535
rustc_index = { version = "0.0.20221221", package = "hkalbasi-rustc-ap-rustc_index", default-features = false }
36+
rustc_lexer = { version = "0.1.0", package = "ra-ap-rustc_lexer" }
3637

3738
# local deps
3839
stdx.workspace = true

0 commit comments

Comments
 (0)