¨Florian
e88f892eca
Fix syntax fixup producing invalid punctuation
...
Fixes #19206 .
Fixes #18244 .
2025-03-08 13:21:00 +01:00
Lukas Wirth
d11c5b8d75
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
02c9b7c91b
Merge pull request #19307 from Natural-selection1/master
...
Fix logical error in PR #19297
2025-03-07 06:58:48 +00:00
Lukas Wirth
5c6a1247fb
Pop up a notification for the MSRV project loading warning
2025-03-07 07:51:53 +01:00
Lukas Wirth
c8d9d5a930
Move project MSRV back to 1.78
2025-03-07 07:51:53 +01:00
Tongjun Gao
16878eb02a
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
f68fd669f3
Fix logical error in relevance scoring implementation
2025-03-07 14:21:57 +08:00
Chayim Refael Friedman
c4f727bfb8
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
b58fc9c2bc
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
6a3ede1240
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
66a1164eeb
Change %e
to ?e
to include detailed error message
2025-03-06 12:42:35 +00:00
Lukas Wirth
2e6292c0f3
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
86741ea6fd
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
d95d2784da
Adjust relevance scoring threshold to consistent with existing implementations
2025-03-06 10:14:39 +08:00
Ali Bektas
bee6cdd962
fix: Make RustAnalyzer:Run available in manifest file
2025-03-06 00:01:16 +01:00
Lukas Wirth
2cff7013c0
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
363297dc53
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
8641805dfe
Fix syntax highlightingg punct filtering ignoring mods
2025-03-05 15:02:44 +01:00
Lukas Wirth
b9f5453d77
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
87815f7c0b
Use HIR unsafety information for unsafe syntax highlightng
2025-03-05 13:18:46 +01:00
Arthur Baars
52525bc913
Improve tracing log format in cargo_workspace.rs
2025-03-05 12:49:42 +01:00
Arthur Baars
049f4dbd2b
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
5421fba746
add test cases for 'letm' keyword completion
2025-03-05 17:26:30 +08:00
Lukas Wirth
5ad05fb9e9
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
653801b854
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
0ffef9b5d1
minicore: Add size_of to prelude and add rust_2024 prelude
2025-03-05 00:30:38 -08:00
Laurențiu Nicola
e260467cfd
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
9a8968fa6c
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
b9d157c67a
Twiddle with the rustup invocation on CI
2025-03-05 07:56:17 +02:00
Tongjun Gao
120d5490aa
change 'let mut' keyword completion into 'ietm' snippet
2025-03-04 12:04:54 +08:00
Tongjun Gao
0d6dfc8031
Improve keyword completion for 'let' and 'let mut'
2025-03-04 11:50:11 +08:00
Lukas Wirth
d137fee542
Merge pull request #19275 from lnicola/min-1-82
...
Bump minimum supported toolchain to 1.82
2025-03-03 14:26:01 +00:00
Laurențiu Nicola
de07b171ef
Bump minimum supported toolchain to 1.82
2025-03-03 16:03:06 +02:00
Lukas Wirth
16644ba8b8
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
73e0fe1545
Merge pull request #19243 from Veykril/push-qrrqsywkwyzp
...
Allow unsetting default cfgs
2025-03-03 11:42:40 +00:00
Lukas Wirth
6610e60175
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
c315ad914f
Support tuple struct patterns for expand_rest_pattern assist
2025-03-03 12:35:53 +01:00
bit-aloo
c2a630eaa5
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
015e81d08f
Merge pull request #19269 from lnicola/sync-from-rust
...
minor: sync from downstream
2025-03-03 07:00:48 +00:00
Laurențiu Nicola
24c480e350
Bump rustc crates
2025-03-03 08:43:57 +02:00
Laurențiu Nicola
dd3a5f9a64
Merge from rust-lang/rust
2025-03-03 08:38:46 +02:00
Laurențiu Nicola
969868ba30
Preparing for merge from rust-lang/rust
2025-03-03 08:38:14 +02:00
Chayim Refael Friedman
c6a7251c22
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
daf59857d6
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
f4a216d28e
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
a43a5f9aef
Merge pull request #19266 from the-mikedavis/lsp-pull-diagnostics-identifier
...
Add `identifier` to pull diagnostic LSP capabilities
2025-03-02 14:51:59 +00:00
Michael Davis
1c00d8ffd6
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
5c124a3b00
Merge pull request #19264 from lnicola/theme-color
...
minor: Fix transparent diagnostics
2025-03-02 14:21:42 +00:00
bit-aloo
1840f57dde
add diagnostic for dangling impl
2025-03-02 19:42:42 +05:30
bit-aloo
2f9e5586a0
add diagnostic for dangling dyn
2025-03-02 19:41:39 +05:30