Laurențiu Nicola
724f161cc9
Bump rustc crates
2024-11-01 13:38:35 +02:00
Lukas Wirth
80e9d014be
Merge pull request #18074 from ChayimFriedman2/typeref-source-map
...
internal: Build source map for `hir_def::TypeRef`s
2024-10-28 11:01:12 +00:00
Laurențiu Nicola
d481decd06
Merge pull request #18412 from lnicola/windows-no-gz
...
internal: Stop producing .gz artifacts for Windows
2024-10-28 10:11:29 +00:00
Laurențiu Nicola
47cb838b2c
Stop producing .gz artifacts for Windows
2024-10-25 15:14:52 +03:00
Chayim Refael Friedman
061e5d7f71
Shrink Path
to 16 bytes
...
Thanks to the observation (supported by counting) that the vast majority paths have neither generics no type anchors, and thanks to a new datastructure `ThinVecWithHeader` that is essentially `(T, Box<[U]>)` but with the size of a single pointer, we are able to reach this feat.
This (together with `ThinVecWithHeader`) makes the possibility to shrink `TypeRef`, because most types are paths.
2024-10-25 06:44:56 +03:00
Laurențiu Nicola
333952f623
Update changelog generation for merge queues
2024-10-24 20:40:57 +03:00
Lukas Wirth
6c23f25e7f
Fix new nightly lints
2024-10-22 11:48:41 +02:00
roife
834ccbffba
fix: classify safe
as a contextual kw
2024-10-21 02:56:21 +08:00
David Barsky
ccee36e8dd
chore: rename salsa to ra_salsa
2024-10-14 10:09:22 -04:00
Lukas Wirth
86658c66b4
Parse builtin#asm expressions
2024-09-04 14:09:03 +02:00
Lukas Wirth
3ad54a74ab
Allow xtask::reformat to work without rustup
2024-08-30 16:17:45 +02:00
Lukas Wirth
38c1d6e337
Revert "fix: do not assume rustup is installed in xtask codegen"
...
This reverts commit 7d9e4fcc07
.
2024-08-30 16:15:01 +02:00
Ivar Scholten
7d9e4fcc07
fix: do not assume rustup is installed in xtask codegen
...
When formatting generated code the xtask crate attempts to run `rustup run stable rustfmt`,
which fails if `rustup` is not installed. This results in test failures when another source manages
the compiler toolchain, for example when using Nix (or any other distro-specific packaging solution):
* xtask::codegen::grammar::test
* xtask::codegen::assists_doc_tests::test
With this commit xtask will first attempt to run `rustup run stable rustfmt`, and if that fails just
plain `rustfmt`. It still validates a stable version is being used.
This allows `cargo test` to pass on systems that do not use `rustup`.
2024-08-27 14:25:13 +02:00
Lukas Wirth
f90bdfc13d
internal: Properly check the edition for edition dependent syntax kinds
2024-08-15 15:57:47 +02:00
Lukas Wirth
80483e0622
Allow new license combination
2024-08-12 12:51:47 +02:00
Lukas Wirth
2d15cdb9fc
minor: Fix metrics not running
2024-08-05 14:59:27 +02:00
Ralf Jung
83e534923d
when josh-proxy screws up the roundtrip, say what the involved commits are
2024-08-01 12:28:02 +02:00
Lukas Wirth
200a01adc4
Generate From impls for Any* nodes
2024-07-25 10:21:58 +02:00
Lukas Wirth
92f5e806f1
Fix edition used for include macro parsing
2024-07-19 20:29:53 +02:00
bors
fa3dd33c27
Auto merge of #17620 - Veykril:edition-aware-parser, r=Veykril
...
Edition aware parser
Fixes https://github.com/rust-lang/rust-analyzer/issues/16324 by allowing us to properly thread through the edition to the parser
2024-07-19 14:56:56 +00:00
Lukas Wirth
713c47f25b
Add basic edition inline parser test support
2024-07-19 15:19:43 +02:00
Laurențiu Nicola
89d089f547
Make xtask install work again
2024-07-19 09:11:26 +03:00
Lukas Wirth
7a5bf92b89
Rewrite inline parser test infra to generated proper rust test cases
2024-07-18 10:03:19 +02:00
Lukas Wirth
b8cac1bb6b
string is not a keyword
2024-07-17 11:11:57 +02:00
Lukas Wirth
7011094685
Add always disabled gen parse support
2024-07-17 10:49:12 +02:00
Lukas Wirth
983c9c122e
Derive kinds information from ungrammar file
2024-07-17 10:04:45 +02:00
Lukas Wirth
c0136070a7
Add cargo xtask install proc-macro-server
2024-07-15 12:41:02 +02:00
Lukas Wirth
35aa238020
Inline all the things
2024-07-07 11:18:40 +02:00
Lukas Wirth
c08d419fba
HasGenericArgs syntax trait
2024-07-07 11:18:28 +02:00
Lukas Wirth
ce5046be50
Run codegen commands as tests if their results are commited
2024-07-07 09:14:50 +02:00
Lukas Wirth
866102cdaf
Re-implement tidy as an xtask action
2024-07-07 09:12:16 +02:00
Lukas Wirth
e752517814
re-generate feature docs in release
2024-07-07 09:01:35 +02:00
Lukas Wirth
986b9cf022
Move feature-doc generation to xtask codegen
2024-07-07 09:00:18 +02:00
Lukas Wirth
5802643900
Move parser test generation to xtask
2024-07-07 08:51:19 +02:00
Lukas Wirth
15973f1a55
Fix stop_watch on linux
2024-07-07 08:40:41 +02:00
Lukas Wirth
9b3e912d67
Update generated lint definitions
2024-07-07 08:35:18 +02:00
Lukas Wirth
013b6a883f
Fix up the syntax tree for macro 2.0
2024-07-03 10:41:19 +02:00
Lukas Wirth
5374ebbf36
Simplify
2024-06-30 14:00:55 +02:00
Laurențiu Nicola
d598164927
Remove Changelog: XXX title from Github release notes
2024-06-22 14:55:23 +03:00
Lukas Wirth
0c795a7226
fix: Fix generated markers not being patchable in package.json
2024-06-08 12:54:43 +02:00
ChosenName
bfc7d3f1b2
Update dist.rs
2024-06-04 21:44:07 -06:00
Hamir Mahal
7c34eb3880
style: simplify string interpolation
2024-05-30 16:18:49 -07:00
Ralf Jung
b4ad65b394
add no-new-root check to josh pull
2024-04-27 09:02:07 +02:00
Laurențiu Nicola
c38295993b
Use josh for subtree syncs
2024-04-21 10:07:08 +03:00
davidsemakula
e326b634d1
internal: add reserved keywords
2024-04-15 15:06:26 +03:00
bors
3691380c35
Auto merge of #16920 - Veykril:clippy-lints, r=Veykril
...
internal: Fix new nightly clippy lints
2024-04-01 16:00:18 +00:00
Lukas Wirth
2ae3e57c26
Fix new clippy lints
2024-04-01 17:55:56 +02:00
Laurențiu Nicola
f6b9cff105
Support choosing the allocator in xtask dist
2024-03-23 11:48:21 +02:00
Laurențiu Nicola
84d38c7e94
Move xtask flags around outide the generated section
2024-03-23 11:35:32 +02:00
Lukas Wirth
b38d5394bb
internal: Move grammar codegen into xtask
2024-03-19 10:57:53 +01:00