Lukas Wirth
bf27d88616
Show variance of parameters on hover
2024-12-28 20:31:20 +01:00
Lukas Wirth
e54cf80b98
Simplify
2024-12-28 19:54:22 +01:00
Lukas Wirth
d66a337658
Get rid of constrain and solve steps
2024-12-28 19:54:22 +01:00
Lukas Wirth
0e50c3c81b
Remove unnecessary VarianceTerm
2024-12-28 19:54:22 +01:00
Lukas Wirth
4ea29d619c
Implement parameter variance inference
2024-12-28 19:54:22 +01:00
Lukas Wirth
873cf255de
Add DynTyExt::principal_id
2024-12-28 18:26:45 +01:00
Lukas Wirth
73ae6a0ba8
Downgrade salsa log levels
2024-12-28 18:23:24 +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
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
Matthias Krüger
e86874f807
Rollup merge of #134629 - clubby789:debuginfo-specific, r=jieyouxu
...
compiletest: Allow using a specific debugger when running debuginfo tests
r? `@jieyouxu`
Closes #134468
Example: `./x test tests/debuginfo -- --debugger gdb`
2024-12-22 21:59:26 +01: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
Matthias Krüger
0cfabd5d60
Rollup merge of #134607 - tbu-:pr_fix_typo3, r=oli-obk
...
on pair → on par
2024-12-21 22:16:04 +01:00
Matthias Krüger
22de6f6880
Rollup merge of #134581 - erickt:bump_sdk, r=lqd
...
Bump Fuchsia toolchain for testing
This updates the Fuchsia SDK used to test rust on Fuchsia to 26.20241211.7.1, and clang to the development version 20 from 388d7f144880dcd85ff31f06793304405a9f44b6.
```@steven807``` asked me to take over the PR. Since I don't have commit access to his repo, I just cherry picked his patch here.
try-job: dist-various-2
r? lqd
2024-12-21 22:16:04 +01:00
clubby789
4f4d62067a
compiletest: Allow using a specific debugger when running debuginfo tests
2024-12-21 20:47:58 +00:00
Jakub Beránek
69a6c9c365
Revert "Auto merge of #133902 - Kobzol:ci-dist-arm-runner, r=MarcoIeni"
...
This reverts commit b597d2a099 , reversing
changes made to ff7906bfe1 .
2024-12-21 13:51:17 +01: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
Tobias Bucher
84f8faf17c
on pair → on par
2024-12-21 10:18:39 +01: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