David Barsky
0bf6ffaf82
Update crates/project-model/src/rustc_cfg.rs
...
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2023-09-08 14:07:59 -04:00
David Barsky
912b22fa07
add doc comment to rustc_cfg::RustcCfgConfig
2023-09-07 15:30:11 -04:00
David Barsky
fad3823a20
rename rustc_cfg::Config
to rustc_cfg::RustcCfgConfig
and import
2023-09-07 15:19:04 -04:00
David Barsky
553152e2d5
refactor rustc_cfg
to be more inline with docs/dev/style.md
2023-09-07 15:06:51 -04:00
David Barsky
5b5bce8aaf
project-model: when using rust-project.json
, prefer the sysroot-defined rustc over an env-based one
2023-09-07 11:46:14 -04:00
bors
f29867bd26
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 https://github.com/rust-lang/rust-analyzer/issues/15082
2023-09-06 17:44:33 +00:00
Lukas Wirth
96f19231d3
Fix hir pretty printing emitting trailing whitespace
2023-09-06 19:31:48 +02:00
Lukas Wirth
5046889f43
Don't allocate the format_args template string as an expression
2023-09-06 19:18:12 +02:00
Lukas Wirth
3fa0bf0dd3
Fix ide-diagnostics test fixture
2023-09-06 18:31:16 +02:00
Lukas Wirth
c0e402637e
Emit builtin#format_args in builtin format_args expander
2023-09-06 18:08:20 +02:00
Lukas Wirth
5fdd1e36e3
Remove todo!()
s
2023-09-06 15:30:44 +02:00
Lukas Wirth
e243a03da1
Desugar builtin#format_args
2023-09-06 15:21:41 +02:00
bors
b9a9722bda
Auto merge of #15556 - gigaroby:master, r=lnicola
...
Update notify to 6.1.1
Unlike version 6.0.1, this does not pull windows-sys 0.45.0 as observed in #15077 .
```
$ cargo tree --target=x86_64-pc-windows-gnu --charset=ascii | grep windows-sys
| | `-- windows-sys v0.42.0
| | | | | | `-- windows-sys v0.42.0 (*)
| `-- windows-sys v0.48.0
| | `-- windows-sys v0.48.0 (*)
| `-- windows-sys v0.48.0 (*)
| `-- windows-sys v0.48.0 (*)
| `-- windows-sys v0.42.0 (*)
```
2023-09-05 20:01:54 +00:00
Lukas Wirth
abe8f1ece4
Implement builtin#format_args, using rustc's format_args parser
2023-09-05 19:19:46 +02:00
bors
caeea45999
Auto merge of #15557 - Veykril:builtin-syntax, r=Veykril
...
Parse builtin# syntax and add typechecking for builtin#offset_of expression
Also removes box syntax, fixes https://github.com/rust-lang/rust-analyzer/issues/14504
cc https://github.com/rust-lang/compiler-team/issues/580 https://github.com/rust-lang/rust-analyzer/issues/15082
2023-09-05 12:10:31 +00:00
Lukas Wirth
3431d586e5
Insert builtin#asm into asm! expansion
2023-09-05 14:00:49 +02:00
Lukas Wirth
15048304e3
Implement offset_of in hir-def and hir-ty
2023-09-05 12:27:52 +02:00
Lukas Wirth
9b8eb807a3
Parse builtin# syntax
2023-09-05 10:36:35 +02:00
Roberto Bampi
4f22e1a187
Update notify to 6.1.1
...
Unlike version 6.0.1, this does not pull windows-sys 0.4.5 as observed in #15077 .
$ cargo tree --target=x86_64-pc-windows-gnu --charset=ascii | grep windows-sys
| | `-- windows-sys v0.42.0
| | | | | | `-- windows-sys v0.42.0 (*)
| `-- windows-sys v0.48.0
| | `-- windows-sys v0.48.0 (*)
| `-- windows-sys v0.48.0 (*)
| `-- windows-sys v0.48.0 (*)
| `-- windows-sys v0.42.0 (*)
2023-09-04 18:00:12 +02:00
bors
2df30e1e07
Auto merge of #15553 - Veykril:metrics-hyper, r=Veykril
...
Add hyper-0.14.18 to metrics
should give us a bit of async stuff
2023-09-03 09:42:32 +00:00
Lukas Wirth
db4684ef6c
Add hyper-0.14.18 to metrics
2023-09-03 11:39:29 +02:00
bors
63867dd477
Auto merge of #15552 - Veykril:metrics-new, r=Veykril
...
Bump `rustc-perf` checkout for metrics, replace webrender, diesel and ripgrep with newer versions
The previous versions were removed hence the updates. The metric results for the changed ones are disconnected now as to not muddle things up.
I think it's worth it for us to occasionally bump the `rustc-perf` checkout, as it allows us to include more interesting new targets.
Notably, the newer diesel is 3 times as fast to analyze as the one of the current checkout.
2023-09-03 08:34:45 +00:00
Lukas Wirth
f76f025889
Fix metrics CI to use new json file names
2023-09-03 10:34:32 +02:00
Lukas Wirth
520d02f561
Check that the bench path exists before invoking analysis-stats
2023-09-03 10:03:20 +02:00
Lukas Wirth
3a6196bf9e
Bump rustc-perf, replace webrender and diesel with newer versions
2023-09-03 09:54:18 +02:00
bors
99686d56a8
Auto merge of #15551 - Veykril:docs, r=Veykril
...
Move doc comment handling into ide-db
2023-09-02 15:28:07 +00:00
Lukas Wirth
81f0108067
Remove markdown module from rust-analyzer crate
2023-09-02 17:27:52 +02:00
Lukas Wirth
8eddc64f86
Simplify
2023-09-02 17:12:57 +02:00
Lukas Wirth
b1575528c0
Move doc comment handling into ide-db
2023-09-02 16:27:26 +02:00
bors
0e002fe5c6
Auto merge of #15549 - Veykril:unwind-if-cancelled, r=Veykril
...
Add a few more `db.unwind_if_cancelled()` calls
Judging from a profile sent by a friend, the borrowck query took up a significant amount of time in their project which might be the cause for some unresponsiveness as nothing in the mir stack currently unwinds on cancellation
2023-09-02 12:40:44 +00:00
Lukas Wirth
0bf0563a00
Add a few more db.unwind_if_cancelled()
calls
2023-09-02 14:39:19 +02:00
bors
8a29d0776f
Auto merge of #15548 - Veykril:r-a-restructure, r=Veykril
...
Restructure some modules in rust-analyzer crate
2023-09-02 12:22:06 +00:00
Lukas Wirth
2dbc7e3e1a
Restructure some modules in rust-analyzer crate
2023-09-02 14:16:04 +02:00
bors
2557995eaa
Auto merge of #15546 - cuishuang:master, r=lnicola
...
remove the repetitive word
2023-09-02 07:11:34 +00:00
cui fliter
056b6b9416
remove the repetitive word
...
Signed-off-by: cui fliter <imcusg@gmail.com>
2023-09-02 14:18:10 +08:00
bors
60182f7043
Auto merge of #15544 - Veykril:locks, r=Veykril
...
Shuffle some locking around
The main thread is still occasionally blocking on something and I am unsure what the cause might be. This will hopefully help somewhat
2023-09-01 19:55:03 +00:00
Lukas Wirth
c19390992c
Reduce semantic token cache lock scopes
2023-09-01 21:54:29 +02:00
Lukas Wirth
cc8b78601d
Shuffle some locking around
2023-09-01 20:45:46 +02:00
bors
074c66882f
Auto merge of #15543 - Veykril:less-alloc, r=Veykril
...
Remove some allocations in borrowck
2023-09-01 18:28:42 +00:00
Lukas Wirth
70e21dc30b
Remove some allocations in borrowck
2023-09-01 19:17:57 +02:00
bors
ce650ce19d
Auto merge of #15542 - Veykril:std-once, r=Veykril
...
Less `once_cell` more `std`
2023-09-01 16:05:24 +00:00
Lukas Wirth
c09f175d59
Less once_cell
more std
2023-09-01 17:30:59 +02:00
bors
321334429e
Auto merge of #15534 - rust-lang:Veykril-patch-1, r=Veykril
...
Update architecture.md
2023-08-30 18:12:28 +00:00
Lukas Wirth
ea74cc4b9a
Update architecture.md
2023-08-30 19:53:47 +02:00
bors
b06503b6ec
Auto merge of #15465 - Wilfred:command_handle_fixes, r=Veykril
...
Fix cargo handle logging in flycheck
This PR has two commits, so it's probably easier to review them separately:
(1) Rename `CargoHandle` to `CommandHandle`, as the command may not be a cargo command.
(2) Logging should format the current command, rather than calling `check_command()` again. This ensures that any later configuration changes don't cause us to log incorrect information.
2023-08-29 07:16:20 +00:00
bors
62268e474e
Auto merge of #15527 - HKalbasi:diagnostics-allow, r=HKalbasi
...
Respect `#[allow(unused_braces)]`
fix #15526
2023-08-28 18:54:08 +00:00
hkalbasi
514fefab9c
Respect #[allow(unused_braces)]
2023-08-28 22:22:28 +03:30
bors
144526c908
Auto merge of #15523 - lnicola:bootstrap, r=lnicola
...
internal: Fix release workflow
2023-08-28 07:24:24 +00:00
Laurențiu Nicola
a6f53567b0
Fix release workflow
2023-08-28 10:23:24 +03:00
Laurențiu Nicola
a0d27610ac
Use env node to set RUSTC_BOOTSTRAP
2023-08-28 10:22:33 +03:00