¨Florian
da87f5607b
Generated doc update
2025-03-08 13:26:28 +01:00
¨Florian
5335d8cbc5
Fix syntax fixup producing invalid punctuation
...
Fixes #19206 .
Fixes #18244 .
2025-03-08 13:21:00 +01:00
Lukas Wirth
62dea277cc
Merge pull request #19308 from Veykril/push-rnrxutwlvmly
...
Move loaded project MSRV back to 1.78, show notification for the warning
2025-03-07 07:06:54 +00:00
Lukas Wirth
488d1dc7aa
Merge pull request #19307 from Natural-selection1/master
...
Fix logical error in PR #19297
2025-03-07 06:58:48 +00:00
Lukas Wirth
1427a91c62
Pop up a notification for the MSRV project loading warning
2025-03-07 07:51:53 +01:00
Lukas Wirth
0424e2e2bf
Move project MSRV back to 1.78
2025-03-07 07:51:53 +01:00
Tongjun Gao
7d68c28873
Refactor relevance scoring to use a named constant BASE_SCORE
...
Replace magic number with a named constant for improved readability and maintainability of the scoring logic
2025-03-07 14:44:57 +08:00
Tongjun Gao
88e18230ba
Fix logical error in relevance scoring implementation
2025-03-07 14:21:57 +08:00
Chayim Refael Friedman
21a88a3767
Merge pull request #19304 from ChayimFriedman2/restart-syntax-tree
...
minor: Mark `rust-analyzer.showSyntaxTree` config option as requiring server restart
2025-03-06 22:32:23 +00:00
Chayim Refael Friedman
0afa5e8096
Mark rust-analyzer.showSyntaxTree
config option as requiring server restart
...
We register the provider when we start the server. It confused me why I set the option and it didn't work, so probably better to have it hint people.
2025-03-07 00:16:54 +02:00
Lukas Wirth
bd0289e0e9
Merge pull request #19290 from aibaars/patch-1
...
Add warning and debug information when `cargo metadata` fails
2025-03-06 13:21:24 +00:00
Arthur Baars
e98c98fa31
Change %e
to ?e
to include detailed error message
2025-03-06 12:42:35 +00:00
Lukas Wirth
891dde669d
Merge pull request #19295 from alibektas/rust_analyzer_run_on_cargo_toml
...
fix: Make RustAnalyzer:Run available in manifest file
2025-03-06 08:08:56 +00:00
Lukas Wirth
1ea081fe40
Merge pull request #19297 from Natural-selection1/master
...
Adjust relevance scoring threshold to consistent with existing implem…
2025-03-06 08:05:46 +00:00
Tongjun Gao
98b1d5e8a3
Adjust relevance scoring threshold to consistent with existing implementations
2025-03-06 10:14:39 +08:00
Ali Bektas
4c7490010a
fix: Make RustAnalyzer:Run available in manifest file
2025-03-06 00:01:16 +01:00
Lukas Wirth
d426cbee76
Merge pull request #19292 from Veykril/push-zonnrrlosqmv
...
Fix syntax highlightingg punct filtering ignoring mods
2025-03-05 14:18:09 +00:00
Lukas Wirth
4552a3421f
Merge pull request #19279 from Natural-selection1/master
...
Improve keyword completion for 'let' and 'let mut'
2025-03-05 14:14:41 +00:00
Lukas Wirth
94915fbe48
Fix syntax highlightingg punct filtering ignoring mods
2025-03-05 15:02:44 +01:00
Lukas Wirth
27dc614627
Merge pull request #19274 from Veykril/push-pouwrwwrlrlt
...
Highlight unsafe operations as unsafe, not definitions
2025-03-05 12:57:25 +00:00
Lukas Wirth
9fc0ffe008
Use HIR unsafety information for unsafe syntax highlightng
2025-03-05 13:18:46 +01:00
Arthur Baars
c053cc72a7
Improve tracing log format in cargo_workspace.rs
2025-03-05 12:49:42 +01:00
Arthur Baars
55d61be9a3
Add warning and debug information when cargo metadata
fails
...
The errors are silently dropped elsewhere, which make it really hard to debug issues due to dependency download failures.
2025-03-05 10:40:11 +01:00
Tongjun Gao
3ef8a371e8
add test cases for 'letm' keyword completion
2025-03-05 17:26:30 +08:00
Lukas Wirth
b139e2150e
Merge pull request #19288 from thaliaarchi/use-prelude-size-of
...
Use `size_of` from the prelude instead of imported
2025-03-05 09:04:04 +00:00
Thalia Archibald
0811ca0a61
Use size_of from the prelude instead of imported
...
Use `std::mem::{size_of, size_of_val, align_of, align_of_val}` from the
prelude instead of importing or qualifying them.
These functions were added to all preludes in Rust 1.80.
2025-03-05 00:48:44 -08:00
Thalia Archibald
0aa623e108
minicore: Add size_of to prelude and add rust_2024 prelude
2025-03-05 00:30:38 -08:00
Laurențiu Nicola
4815ab0c62
Merge pull request #19286 from lnicola/twiddle-ci
...
Twiddle with the `rustup` invocation on CI
2025-03-05 06:11:37 +00:00
Laurențiu Nicola
3c394c61b8
Merge pull request #19265 from Shourya742/2025-03-01-add-dangling-dyn-diagnostic
...
feat: Add diagnostic for dangling dyn and impl
2025-03-05 05:58:31 +00:00
Laurențiu Nicola
7414416097
Twiddle with the rustup invocation on CI
2025-03-05 07:56:17 +02:00
Tongjun Gao
492d5e2bae
change 'let mut' keyword completion into 'ietm' snippet
2025-03-04 12:04:54 +08:00
Tongjun Gao
0b9dbe7426
Improve keyword completion for 'let' and 'let mut'
2025-03-04 11:50:11 +08:00
Lukas Wirth
02862f5d52
Merge pull request #19275 from lnicola/min-1-82
...
Bump minimum supported toolchain to 1.82
2025-03-04
2025-03-03 14:26:01 +00:00
Laurențiu Nicola
1d6f53e117
Bump minimum supported toolchain to 1.82
2025-03-03 16:03:06 +02:00
Lukas Wirth
03f90b0afa
Merge pull request #19261 from Veykril/push-rnqlyrvqpols
...
Support tuple struct patterns for expand_rest_pattern assist
2025-03-03 11:51:07 +00:00
Lukas Wirth
b685ada098
Merge pull request #19243 from Veykril/push-qrrqsywkwyzp
...
Allow unsetting default cfgs
2025-03-03 11:42:40 +00:00
Lukas Wirth
8ff0b67711
Merge pull request #19244 from Veykril/push-nmnrnlysvyvk
...
Warn when the used toolchain looks too old for rust-analyzer
2025-03-03 11:41:12 +00:00
Lukas Wirth
4ad546f6a6
Support tuple struct patterns for expand_rest_pattern assist
2025-03-03 12:35:53 +01:00
bit-aloo
af959f9031
Add dangling impl
...
- Adds dangling impl diagnostics
- Rename validation test from dangling_impl to dangling_iml_ref
2025-03-03 15:58:33 +05:30
Laurențiu Nicola
071eda7d91
Merge pull request #19269 from lnicola/sync-from-rust
...
minor: sync from downstream
2025-03-03 07:00:48 +00:00
Laurențiu Nicola
e015bb446c
Bump rustc crates
2025-03-03 08:43:57 +02:00
Laurențiu Nicola
2244c99b69
Merge from rust-lang/rust
2025-03-03 08:38:46 +02:00
Laurențiu Nicola
8f3bdd1147
Preparing for merge from rust-lang/rust
2025-03-03 08:38:14 +02:00
Chayim Refael Friedman
9e014a0e61
Merge pull request #19226 from Shourya742/2025-02-25-fix-completion-ref-matching
...
completion-ref-matching
2025-03-03 02:37:00 +00:00
bors
c001c2a711
Auto merge of #137704 - nnethercote:opt-empty-prov-range-checks, r=oli-obk
...
Optimize empty provenance range checks.
Currently it gets the pointers in the range and checks if the result is empty, but it can be done faster if you combine those two steps.
r? `@oli-obk`
2025-03-02 22:41:17 +00:00
bors
9d1465e98f
Auto merge of #137661 - nikic:llvm20-rc3, r=cuviper
...
Update to LLVM 20 rc 3
Fixes a compiler-builtins miscompile (see https://github.com/rust-lang/compiler-builtins/pull/760 ).
2025-03-02 15:52:42 +00:00
Laurențiu Nicola
81ff38f53b
Merge pull request #19266 from the-mikedavis/lsp-pull-diagnostics-identifier
...
Add `identifier` to pull diagnostic LSP capabilities
2025-03-03
2025-03-02 14:51:59 +00:00
Michael Davis
c9fdc48e86
Add identifier
to pull diagnostic LSP capabilities
...
This field in the server capabilities instructs the client to maintain
the diagnostics received from a `textDocument/diagnostic` pull request
as a separate set from other diagnostics: namely those sent with classic
"push" diagnostics, `textDocument/publishDiagnostic`. rust-analyzer
emits "native" diagnostics (computed by rust-analyzer itself) in pull
diagnostics and separately emits cargo-based diagnostics with push, so
push and pull diagnostics should be different sets. Setting this field
instructs the client to avoid clearing push diagnostics when new pull
diagnostics arrive and vice versa.
2025-03-02 09:27:45 -05:00
Laurențiu Nicola
0834d7c382
Merge pull request #19264 from lnicola/theme-color
...
minor: Fix transparent diagnostics
2025-03-02 14:21:42 +00:00
bit-aloo
0b97ae26bf
add diagnostic for dangling impl
2025-03-02 19:42:42 +05:30