Commit f29867b
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 #15082File tree
40 files changed
+2581
-476
lines changed- crates
- hir-def
- src
- body
- hir
- format_args
- item_tree
- macro_expansion_tests
- mbe
- hir-expand/src
- hir-ty/src
- infer
- tests
- ide-assists/src
- handlers
- tests
- ide-completion/src/completions
- ide-db/src/syntax_helpers
- ide-diagnostics/src/handlers
- ide/src
- hover
- inlay_hints
- syntax_highlighting
- test_data
- parser
- src
- grammar/expressions
- syntax_kind
- test_data/parser/inline/ok
- syntax
- src
- ast/generated
- tests
- test-utils/src
40 files changed
+2581
-476
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
0 commit comments