Lukas Wirth
171be2bd58
fix: Fix flycheck diagnostics flickering for binary targets
2024-12-28 18:16:55 +01:00
Lukas Wirth
eea4a9ab9e
Merge pull request #18744 from gbbosak/master
...
Treat ; as a terminator rather part of a glued expression
2024-12-27 09:57:02 +00:00
Lukas Wirth
352116ce97
Merge pull request #18762 from davidbarsky/davidbarsky/wrap-salsa-cancellation-error
...
internal: wrap `salsa::Cycle`
2024-12-26 15:42:53 +00:00
Lukas Wirth
bae8fb5c80
Merge pull request #18761 from Veykril/push-vktnzltnxupr
...
internal: Swallow `error: config value is not set` cargo error
2024-12-26 15:28:24 +00:00
David Barsky
637700e974
internal: wrap salsa::Cycle
2024-12-26 10:26:42 -05:00
Lukas Wirth
5290f20f08
internal: Swallow error: config value is not set cargo error
2024-12-26 16:13:39 +01:00
Lukas Wirth
27dd75d93c
internal: Workaround salsa cycles leaking
2024-12-26 14:55:20 +01:00
roife
9e7d29688f
fix missing name enum when hovering on fields in variants
2024-12-25 07:28:26 +08:00
Lukas Wirth
1287b9362e
fix: Fix metrics workflow using the wrong download-artifact version
2024-12-24 18:59:49 +01:00
Lukas Wirth
6d10170a07
Merge pull request #18743 from ChayimFriedman2/e0107
...
feat: Unify handling of path diagnostics in hir-ty
2024-12-24 17:13:07 +00:00
Lukas Wirth
9c554620c2
Merge pull request #18754 from Veykril/push-zkkzxrsxnqnm
...
Cleanup target fetching for cargo metadata
2024-12-24 17:03:31 +00:00
Chayim Refael Friedman
9d44ee1312
Unify handling of path diagnostics in hir-ty
...
Because it was a mess.
Previously, pretty much you had to handle all path diagnostics manually: remember to check for them and handle them. Now, we wrap the resolver in `TyLoweringContext` and ensure proper error reporting.
This means that you don't have to worry about them: most of the things are handled automatically, and things that cannot will create a compile-time error (forcing you top `drop(ty_lowering_context);`) if forgotten, instead of silently dropping the diagnostics.
The real place for error reporting is in the hir-def resolver, because there are other things resolving, both in hir-ty and in hir-def, and they all need to ensure proper diagnostics. But this is a good start, and future compatible.
This commit also ensures proper path diagnostics for value/pattern paths, which is why it's marked "feat".
2024-12-24 18:58:52 +02:00
Lukas Wirth
4be8178a76
Cleanup target fetching for cargo metadata
2024-12-24 17:49:07 +01:00
Lukas Wirth
8bfb2fe018
Merge pull request #18707 from ChayimFriedman2/subst
...
feat: Show substitution where hovering over generic things
2024-12-24 14:16:16 +00:00
Lukas Wirth
eb80a6bd48
Merge pull request #18718 from Giga-Bowser/fix-syntaxfactory-intoiterator
...
internal: Standardize how we take iterator parameters in `SyntaxFactory`
2024-12-24 14:12:52 +00:00
Lukas Wirth
b3308bce33
Merge pull request #18722 from markmurphydev/status_bar_settings
...
Rename `rust-analyzer.statusBar.documentSelector` to `showStatusBar`, add "always" and "never" options.
2024-12-24 14:12:32 +00:00
Lukas Wirth
a63d166eeb
Merge pull request #18750 from Veykril/push-tyvtqpwrwvsr
...
Back out "internal: Disable rustc test metrics"
2024-12-24 09:52:37 +00:00
Lukas Wirth
9251d422b8
Back out "internal: Disable rustc test metrics"
...
This backs out commit d9a08624aa .
2024-12-24 10:37:24 +01:00
Lukas Wirth
91fb189652
Remove dangling outdated test module
2024-12-24 10:37:24 +01:00
Lukas Wirth
417dcc4143
Merge pull request #18749 from PrototypeNM1/windows-debugger-wait
...
minor: Break out of waiting for debugger on Windows using native debugger check API.
2024-12-24 08:40:56 +00:00
Nicholas Rishel
5e7ce33966
minor: Break out of waiting for debugger on Windows using native debugger check API.
...
For Windows, this removes the need to add a breakpoint and modify a value to exit the debugger wait loop.
As a ridealong, this adds a 100ms sleep for all platforms such that waiting for the debugger doesn't hog the CPU thread.
2024-12-23 14:33:26 -08:00
Laurențiu Nicola
0180d2d16f
Bump rustc crates
2024-12-23 11:33:26 +02:00
Laurențiu Nicola
9420a0b11a
Merge from rust-lang/rust
2024-12-23 11:27:07 +02:00
Laurențiu Nicola
214134902f
Preparing for merge from rust-lang/rust
2024-12-23 11:26:54 +02:00
bors
908af5ba4a
Auto merge of #134666 - matthiaskrgr:rollup-whe0chp, r=matthiaskrgr
...
Rollup of 6 pull requests
Successful merges:
- #130289 (docs: Permissions.readonly() also ignores root user special permissions)
- #134583 (docs: `transmute<&mut T, &mut MaybeUninit<T>>` is unsound when exposed to safe code)
- #134611 (Align `{i686,x86_64}-win7-windows-msvc` to their parent targets)
- #134629 (compiletest: Allow using a specific debugger when running debuginfo tests)
- #134642 (Implement `PointerLike` for `isize`, `NonNull`, `Cell`, `UnsafeCell`, and `SyncUnsafeCell`.)
- #134660 (Fix spacing of markdown code block fences in compiler rustdoc)
r? `@ghost`
`@rustbot` modify labels: rollup
2024-12-23 01:18:40 +00:00
Brian Bosak
0d5b480159
Treat ; as a terminator rather than something that can be glued together in an expression
2024-12-22 16:44:01 -06:00
bors
5a14967f7b
Auto merge of #131311 - rust-lang:cargo_update, r=clubby789
...
Weekly `cargo update`
Automation to keep dependencies in `Cargo.lock` current.
The following is the output from `cargo update`:
```txt
compiler & tools dependencies:
Locking 15 packages to latest compatible versions
Updating clap_complete v4.5.39 -> v4.5.40
Updating env_filter v0.1.2 -> v0.1.3
Updating env_logger v0.11.5 -> v0.11.6
Updating expect-test v1.5.0 -> v1.5.1
Updating foldhash v0.1.3 -> v0.1.4
Updating miniz_oxide v0.8.1 -> v0.8.2
Updating object v0.36.5 -> v0.36.7
Updating serde_json v1.0.133 -> v1.0.134
Updating thiserror v2.0.7 -> v2.0.9
Updating thiserror-impl v2.0.7 -> v2.0.9
Updating tinyvec v1.8.0 -> v1.8.1
Updating wasm-encoder v0.221.2 -> v0.222.0
Removing wasmparser v0.218.0
Removing wasmparser v0.221.2
Adding wasmparser v0.222.0
Updating wast v221.0.2 -> v222.0.0
Updating wat v1.221.2 -> v1.222.0
note: pass `--verbose` to see 35 unchanged dependencies behind latest
library dependencies:
Locking 1 package to latest compatible version
Updating object v0.36.5 -> v0.36.7
note: pass `--verbose` to see 6 unchanged dependencies behind latest
rustbook dependencies:
Locking 9 packages to latest compatible versions
Updating cc v1.2.0 -> v1.2.5
Updating clap_complete v4.5.39 -> v4.5.40
Updating env_filter v0.1.2 -> v0.1.3
Updating env_logger v0.11.5 -> v0.11.6
Updating libc v0.2.168 -> v0.2.169
Updating miniz_oxide v0.8.1 -> v0.8.2
Updating serde_json v1.0.133 -> v1.0.134
Updating thiserror v2.0.7 -> v2.0.9
Updating thiserror-impl v2.0.7 -> v2.0.9
```
2024-12-22 22:29:29 +00:00
Scott McMurray
29889fd1ef
Update clippy
2024-12-22 06:12:45 -08:00
Lukas Wirth
63a3c39461
Merge pull request #18742 from Veykril/push-yswvkzmsvqql
...
fix: Fix flycheck workspace when requested but package was found
2024-12-22 13:42:39 +00:00
Lukas Wirth
6604f22c02
fix: Fix flycheck workspace when requested but package was found
2024-12-22 14:28:17 +01:00
Lukas Wirth
eea63c2473
fix: Delay initial flycheck until after build scripts
2024-12-22 14:18:53 +01:00
Lukas Wirth
c38d297b9f
Merge pull request #18738 from Veykril/push-vqxqutskzvvu
...
fix: Properly check if workspace flychecking is allowed
2024-12-22 12:11:00 +00:00
Lukas Wirth
84b7c8b13c
Merge pull request #18740 from Veykril/push-tntsvtmtlotw
...
fix: Fix empty check diagnostics not marking files as changed
2024-12-22 11:52:59 +00:00
Lukas Wirth
2a977e0e92
fix: Fix empty check diagnostics not marking files as changed
2024-12-22 12:38:38 +01:00
Lukas Wirth
36135264a6
Merge pull request #18739 from Veykril/push-ntpvvqnnovtn
...
fix: Don't trigger paren wrapping typing handler after idents
2024-12-22 11:22:56 +00:00
Lukas Wirth
b08d1f93ce
fix: Properly check if workspace flychecking is allowed
2024-12-22 12:10:48 +01:00
Lukas Wirth
15206e4942
fix: Don't trigger paren wrapping typing handler after idents
2024-12-22 12:08:27 +01:00
Lukas Wirth
36455e9557
Merge pull request #18737 from Veykril/push-rslstwynmzpx
...
minor: Tell the server to stop prior to restarting it
2024-12-22 10:44:27 +00:00
Lukas Wirth
5c302cc867
minor: Tell the server to stop prior to restarting it
2024-12-22 11:30:18 +01:00
Lukas Wirth
9812c4de07
Merge pull request #18735 from Veykril/push-rpuxqrzrzvsw
...
fix: Set `result_id` for `RelatedFullDocumentDiagnosticReport` everywhere
2024-12-22 10:03:25 +00:00
Lukas Wirth
c2e2360d9b
fix: Set result_id for RelatedFullDocumentDiagnosticReport everywhere
2024-12-22 10:48:57 +01:00
github-actions
b4ef16857e
cargo update
...
compiler & tools dependencies:
Locking 15 packages to latest compatible versions
Updating clap_complete v4.5.39 -> v4.5.40
Updating env_filter v0.1.2 -> v0.1.3
Updating env_logger v0.11.5 -> v0.11.6
Updating expect-test v1.5.0 -> v1.5.1
Updating foldhash v0.1.3 -> v0.1.4
Updating miniz_oxide v0.8.1 -> v0.8.2
Updating object v0.36.5 -> v0.36.7
Updating serde_json v1.0.133 -> v1.0.134
Updating thiserror v2.0.7 -> v2.0.9
Updating thiserror-impl v2.0.7 -> v2.0.9
Updating tinyvec v1.8.0 -> v1.8.1
Updating wasm-encoder v0.221.2 -> v0.222.0
Removing wasmparser v0.218.0
Removing wasmparser v0.221.2
Adding wasmparser v0.222.0
Updating wast v221.0.2 -> v222.0.0
Updating wat v1.221.2 -> v1.222.0
note: pass `--verbose` to see 35 unchanged dependencies behind latest
library dependencies:
Locking 1 package to latest compatible version
Updating object v0.36.5 -> v0.36.7
note: pass `--verbose` to see 6 unchanged dependencies behind latest
rustbook dependencies:
Locking 9 packages to latest compatible versions
Updating cc v1.2.0 -> v1.2.5
Updating clap_complete v4.5.39 -> v4.5.40
Updating env_filter v0.1.2 -> v0.1.3
Updating env_logger v0.11.5 -> v0.11.6
Updating libc v0.2.168 -> v0.2.169
Updating miniz_oxide v0.8.1 -> v0.8.2
Updating serde_json v1.0.133 -> v1.0.134
Updating thiserror v2.0.7 -> v2.0.9
Updating thiserror-impl v2.0.7 -> v2.0.9
2024-12-22 00:22:56 +00:00
clubby789
4f4d62067a
compiletest: Allow using a specific debugger when running debuginfo tests
2024-12-21 20:47:58 +00:00
bors
54dcff104b
Auto merge of #134604 - RalfJung:miri-sync, r=RalfJung
...
Miri subtree update
r? `@ghost`
2024-12-21 09:21:42 +00:00
The Miri Cronjob Bot
591c47b247
Merge from rustc
2024-12-21 05:09:29 +00:00
The Miri Cronjob Bot
9dac973f84
Preparing for merge from rustc
2024-12-21 05:01:56 +00:00
Weihang Lo
a4b09c3105
Update cargo
2024-12-20 20:50:05 -05:00
roife
56ced3b32f
fix: only show debug lens with a valid root
2024-12-21 07:03:45 +08:00
roife
4f754f4fe7
fix: remove always! check for file_id in runnables
2024-12-21 07:00:49 +08:00
Mark Murphy
b35a8467b6
change config rust-analyzer.statusBar.documentSelector to showStatusBar
2024-12-20 16:41:41 -05:00