about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2024-10-24Merge pull request #18404 from Veykril/veykril/push-swpmkoqqxrvuLukas Wirth-18/+150
feat: Implement diagnostics pull model
2024-10-24feat: Implement diagnostics pull modelLukas Wirth-18/+150
2024-10-24Merge pull request #18402 from Veykril/veykril/push-wrvtystlszlrLukas Wirth-10/+13
internal: Improve proc-macro error msg for failed build scripts
2024-10-24Merge pull request #18401 from Veykril/veykril/push-ulpowvsymyysLukas Wirth-3/+2
minor: Remove intermediate allocations
2024-10-24internal: Improve proc-macro error msg for failed build scriptsLukas Wirth-10/+13
2024-10-24minor: Remove intermediate allocationsLukas Wirth-3/+2
2024-10-24Merge pull request #18399 from Veykril/veykril/push-nnsoxqrwqkmvLukas Wirth-1/+3
Fix diagnostic enable config being ignored
2024-10-24Fix diagnostic enable config being ignoredLukas Wirth-1/+3
2024-10-24Merge pull request #18390 from ShoyuVanilla/issue-18308Lukas Wirth-9/+98
fix: Prevent public re-export of private item
2024-10-24Merge pull request #18396 from lnicola/hide-default-configLaurențiu Nicola-4/+24
internal: Hide `Config::default_config`
2024-10-24Bump smol_strLaurențiu Nicola-3/+3
2024-10-24Hide default config in Debug implLaurențiu Nicola-1/+21
2024-10-24Merge pull request #18395 from Wilfred/missing_cfg_for_coreLukas Wirth-3/+4
fix: Add missing cfg flags for `core` crate
2024-10-24Merge pull request #18394 from Wilfred/pretty_print_statusLukas Wirth-1/+1
internal: Pretty-print Config in status command
2024-10-23fix: Add missing cfg flags for `core` crateWilfred Hughes-3/+4
Some types in `core` are conditionally compiled based on `target_has_atomic` or `target_has_atomic_load_store` without an argument, for example `AtomicU64`. This is less noticeable in Cargo projects, where rust-analyzer adds the output `RUSTC_BOOTSTRAP=1 cargo rustc --print cfg` so it gets the full set of cfg flags. This fixes go-to-definition on `std::sync::atomic::AtomicU64` in non-cargo projects.
2024-10-23internal: Pretty-print Config in status commandWilfred Hughes-1/+1
Config can become very big, even for relatively small rust project, and printing everything on one line makes reading the output in VS Code harder.
2024-10-23Merge pull request #18392 from Veykril/veykril/push-wktpkuklnzotLukas Wirth-2/+1
Swap query call order in `file_item_tree_query`
2024-10-23Swap query call order in file_item_tree_queryLukas Wirth-2/+1
2024-10-23Merge pull request #18391 from davidbarsky/david/log-syntax-on-panicLukas Wirth-1/+2
internal: log original syntax on panic
2024-10-23internal: log original syntax on panicDavid Barsky-1/+2
2024-10-24fix: Prevent public reexport of private itemShoyu Vanilla-9/+98
2024-10-23Merge pull request #18388 from jaboatman/masterLaurențiu Nicola-3/+1
Fix checking for `false` `labelDetailsSupport` value.
2024-10-23Rewrite `label_details_support` condition to be consistent with other parts ↵Jason Boatman-4/+1
of the codebase.
2024-10-23Fix checking for `false` `labelDetailsSupport` value.Jason Boatman-1/+2
2024-10-23Merge pull request #18386 from Wilfred/missing_offsetLaurențiu Nicola-6/+14
fix: Handle missing time offsets gracefully
2024-10-23fix: Handle missing time offsets gracefullyWilfred Hughes-6/+14
The tracing_subscribe docs state that missing offsets likely mean that we're in a multithreaded context: https://docs.rs/tracing-subscriber/latest/tracing_subscriber/fmt/time/struct.OffsetTime.html#method.local_rfc_3339 We're not in a multithreaded context at this point, but some platforms (e.g. OpenBSD) still don't have time offsets available. Since this is only a rust-analyzer debugging convenience, just use system time logging in this situation. Fixes #18384
2024-10-23Merge pull request #18264 from ChayimFriedman2/semi-transparentLukas Wirth-164/+671
fix: Implement mixed site hygiene
2024-10-23Merge pull request #18379 from usamoi/masterLukas Wirth-1/+1
fix dyn incompatible hint message
2024-10-23fix dyn incompatible hint messageusamoi-1/+1
2024-10-23Merge pull request #18376 from Veykril/veykril/push-ptmnsoqzsmqkLukas Wirth-63/+93
feat: Add text edits to more inlay hints
2024-10-23Don't emit edits for postfix adjustment hintsLukas Wirth-23/+28
2024-10-23Add text edit to implicit 'static hintsLukas Wirth-1/+2
2024-10-23Add text edit to discriminant hintsLukas Wirth-5/+6
2024-10-23Add text edit to binding mode hintsLukas Wirth-36/+38
2024-10-23Add text edit to adjustment hintsLukas Wirth-21/+42
2024-10-22Correctly resolve variables and labels from before macro definition in macro ↵Chayim Refael Friedman-50/+287
expansion E.g.: ```rust let v; macro_rules! m { () => { v }; } ``` This was an existing bug, but it was less severe because unless the variable was shadowed it would be correctly resolved. With hygiene however, without this fix the variable is never resolved.
2024-10-22Implement semitransparent hygieneChayim Refael Friedman-124/+394
Or macro_rules hygiene, or mixed site hygiene. In other words, hygiene for variables and labels but not items. The realization that made me implement this was that while "full" hygiene (aka. def site hygiene) is really hard for us to implement, and will likely involve intrusive changes and performance losses, since every `Name` will have to carry hygiene, mixed site hygiene is very local: it applies only to bodies, and we very well can save it in a side map with minor losses. This fixes one diagnostic in r-a that was about `izip!()` using hygiene (yay!) but it introduces a huge number of others, because of #18262. Up until now this issue wasn't a major problem because it only affected few cases, but with hygiene identifiers referred by macros like that are not resolved at all. The next commit will fix that.
2024-10-22Merge pull request #18254 from ChayimFriedman2/fix-mutLukas Wirth-860/+1171
fix: Nail destructuring assignment once and for all
2024-10-22Add test for tuple struct destructuring assignment where the path comes from ↵Chayim Refael Friedman-0/+34
a macro
2024-10-22Merge pull request #18373 from Veykril/veykril/push-mzumrrvynxquLukas Wirth-246/+153
internal: Merge separate inlay hints targeting same range
2024-10-22Merge binding_mode inlay hints into oneLukas Wirth-11/+29
2024-10-22Merge adjustment inlay hints into oneLukas Wirth-145/+83
2024-10-22Merge closure capture inlay hints into oneLukas Wirth-90/+41
2024-10-22Merge pull request #18372 from Kobzol/ci-merge-queueMarco Ieni-20/+17
Switch CI from bors to merge queues
2024-10-22Auto merge of #18370 - duncpro:goto-def-ranges, r=Veykrilbors-8/+124
feat: resolve range patterns to their structs Closes #18367
2024-10-22Auto merge of #18368 - Veykril:test-lsif_contains_generated_macros, r=lnicolabors-17/+199
tests: Add `lsif_contains_generated_constant` test Closes https://github.com/rust-lang/rust-analyzer/pull/18309
2024-10-22Switch CI from bors to merge queuesJakub Beránek-20/+17
2024-10-22Auto merge of #18349 - dqkqd:issue-18344, r=Veykrilbors-1/+166
feat: render docs from aliased type when type has no docs Trying to close #18344 - [x] ~Find the docs by traversing upwards if the type itself has none but aliasing for another type that might have.~ - [x] Show docs from aliased type. - [x] Showing description that we are displaying documentation for different definition in hover box. ![image](https://github.com/user-attachments/assets/820d6f97-aa2c-4dc4-8a25-75746e32d950)
2024-10-22Auto merge of #18371 - Veykril:veykril/push-kwttrusywysp, r=Veykrilbors-25/+184
fix: Fix incorrect parsing of use bounds Fixes https://github.com/rust-lang/rust-analyzer/issues/18357
2024-10-22fix: Fix incorrect parsing of use boundsLukas Wirth-25/+184
Also lower them a bit more