about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/tt
AgeCommit message (Collapse)AuthorLines
2025-07-31`cargo clippy --fix`Lukas Wirth-8/+8
2025-07-20Support `cfg_select!`Chayim Refael Friedman-0/+11
2025-07-09feat(lexer): Allow including frontmatter with 'tokenize'Ed Page-1/+1
2025-06-27Workaround missing none group support in builtin macrosLukas Wirth-0/+1
2025-06-23Don't run doctestsChayim Refael Friedman-0/+1
2025-05-16Inline some format argsLaurențiu Nicola-6/+6
2025-05-05minor: Add more proc-macro tests for parsing negative literalsLukas Wirth-0/+52
2025-04-28Add expression fill mode variant for filling with underscore expressionsLukas Wirth-3/+3
2025-04-01Fix a bug in MBE expansion that arose from incorrect fixing of an older bug ↵Chayim Refael Friedman-3/+21
in MBE Specifically, #18744 was the PR that was supposed to fix the old bug, but it fixed it incorrectly (and didn't add a test!) The underlying reason was that we marked metavariables in expansions as joint if they were joint in the macro call, which is incorrect. This wrong fix causes other bug, #19497, which this PR fixes by removing the old (incorrect) fix.
2025-03-31fix: Fix new nightly lintsLukas Wirth-3/+3
2025-03-08Fix syntax fixup producing invalid punctuation¨Florian-26/+4
Fixes #19206. Fixes #18244.
2025-02-27enable doctestBenjaminBrienen-1/+0
2025-01-02Store token trees in contiguous `Vec` instead of as a treeChayim Refael Friedman-383/+657
I expected this to be faster (due to less allocations and better cache locality), but benchmarked it is not (neither it is slower). Memory usage, however, drops by ~50mb (of `analysis-stats .`). I guess tt construction is just not hot. This also simplifies using even less memory for token trees by compressing equal span, which I plan to do right after. Some workflows are more easily expressed with a flat tt, while some are better expressed with a tree. With the right helpers, though (which was mostly a matter of trial and error), even the worst workflows become very easy indeed.
2024-12-22Treat ; as a terminator rather than something that can be glued together in ↵Brian Bosak-0/+1
an expression
2024-10-22Fix new nightly lintsLukas Wirth-1/+1
2024-09-19Support the `${concat(...)}` metavariable expressionChayim Refael Friedman-0/+7
I didn't follow rustc precisely, because I think it does some things wrongly (or they are FIXME), but I only allowed more code, not less. So we're all fine.
2024-08-29fix: Fix TokenStream::to_string implementation dropping quotation marksLukas Wirth-1/+1
2024-08-06Replace `[package.repository] = "…"` of published crates with ↵Vincent Esche-1/+1
`[package.repository.workspace] = true`
2024-08-06Add repository URL for published crates' missing `[package.repository]` fieldsVincent Esche-0/+1
2024-08-06Replace `"TBD"` with more helpful desciptions in published crates' ↵Vincent Esche-1/+1
`[package.description]` fields
2024-07-29Make basic use of spans for macro expansion errorsLukas Wirth-0/+13
2024-07-16Switch token trees to use SymbolsLukas Wirth-40/+43
2024-07-15Fix incorrect encoding of literals in the proc-macro-api on version 4Lukas Wirth-2/+63
2024-07-15Encode ident rawness and literal kind separately in tt::LeafLukas Wirth-14/+188
2024-06-30Remove inline `rust_2018_idioms, unused_lifetimes` lint warn, Cargo.toml ↵Lukas Wirth-2/+0
already enforces this
2024-06-24move tt-iter into tt crateLukas Wirth-2/+165
2024-06-04Cleanup some inert attribute stuffLukas Wirth-1/+1
2024-04-21Allow rust files to be used linkedProjectsLukas Wirth-0/+672