Chayim Refael Friedman
41227f01d2
Sort notable traits in hover
...
Previously it was ordered by what accidentally happened to be the crate graph order, which isn't sensible, plus it caused changes when any change was done to salsa IDs.
2025-04-18 12:45:22 +03:00
Lukas Wirth
32052e5054
Merge pull request #19616 from ChayimFriedman2/transparent-diags
...
internal: Make hir-ty non-diagnostic queries transparent
2025-04-18 08:53:53 +00:00
Chayim Refael Friedman
5e3a914dc2
Make hir-ty non-diagnostic queries transparent
...
That is, all queries that have a `with_diagnostic` variant.
Them being tracked was (maybe) needed before #19462 , because back then diagnostics could refer `AstId`s (for macro types), but now they are no longer needed.
2025-04-18 07:04:13 +03:00
Lukas Wirth
71d23b9a6b
Merge pull request #19612 from ChayimFriedman2/parent-generics
...
fix: Fix a bug with predicate lowering of associated items
2025-04-17 08:17:26 +00:00
Chayim Refael Friedman
e1962d2e22
Fix a bug with predicate lowering of associated items
...
The essence of the bug is that bounds on `impl Trait` got lowered with incorrect bound vars, as if we were lowering the parent.
2025-04-17 00:19:54 +03:00
Chayim Refael Friedman
0a8f808ebc
Merge pull request #19605 from ChayimFriedman2/fix-sig
...
minor: Fix signature of libc memory usage function on Linux
2025-04-16 14:08:37 +00:00
Chayim Refael Friedman
1cb9b1cb38
Fix signature of libc memory usage function on Linux
...
A soundness issue!
2025-04-16 16:56:45 +03:00
Lukas Wirth
1748a84888
Merge pull request #19589 from roife/fix-issue-19138
...
fix: highlighting for tail expr in labelled blocks
2025-04-16 11:20:05 +00:00
roifewu
cfc28f3148
feat: highlight tail expr when cursor is on label
2025-04-16 19:08:44 +08:00
Lukas Wirth
ea273513ed
Merge pull request #19591 from snprajwal/fix-make-macro
...
fix: use `ast::TokenTree` in `make::expr_macro`
2025-04-16 07:47:25 +00:00
Lukas Wirth
4bef2bf192
Merge pull request #19590 from roife/fix-issue-19540
...
feat: add `pub(crate) mod` option for unlinked files
2025-04-16 07:43:43 +00:00
Prajwal S N
243854211c
fix: use ast::TokenTree in make::expr_macro
...
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-16 13:06:42 +05:30
Lukas Wirth
d5a3d14cac
Merge pull request #19596 from roife/sig-help-info
...
feat: enhance signature help to display generic parameters for callables and default values for generic args
2025-04-16 07:27:21 +00:00
Lukas Wirth
50d6f18349
Merge pull request #19588 from Hmikihiro/ext_func_module
...
fix: `Extract into` function include inline variable in fmt macro
2025-04-16 07:15:15 +00:00
roifewu
727d4b184d
feat: enhance signature help to display generic parameters for callables and default values for generic args
2025-04-16 02:41:08 +08:00
roifewu
7fde3fcd2e
feat: Add pub(crate) mod option for unlinked files
2025-04-15 13:12:03 +08:00
roifewu
78503f2d1f
feat: highlight tail expression in labeled block
2025-04-15 12:58:38 +08:00
Hayashi Mikihiro
28e34c8d33
fix: `Extract into function include inline variable in fmt macro
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-04-15 11:19:50 +09:00
Tyler Breisacher
f9716e4782
Remove incorrect doc comment
2025-04-14 19:05:13 -07:00
Lukas Wirth
7fc29a99ef
Merge pull request #19568 from snprajwal/destructure-struct-editor
...
refactor: editor for `destructure_struct_binding`
2025-04-14 15:35:00 +00:00
Lukas Wirth
aded72f8e6
Merge pull request #19572 from snprajwal/expand-rest-pattern
...
refactor: migrate `expand_rest_pattern` to editor
2025-04-14 14:50:08 +00:00
Lukas Wirth
dc70a78b03
Merge pull request #19569 from snprajwal/fixmes
...
fix(ast): return correct types for `make::expr_*` methods
2025-04-14 11:10:27 +00:00
Lukas Wirth
8fb2b3e4d6
Merge pull request #19579 from ChayimFriedman2/cyclic-closure
...
fix: Prevent panics when there is a cyclic dependency between closures
2025-04-14 10:15:03 +00:00
Chayim Refael Friedman
cdc5ba30fc
Prevent panics when there is a cyclic dependency between closures
...
We didn't include them in the sorted closures list, therefore didn't analyze them, then failed to find them.
2025-04-14 07:12:51 +03:00
yukang
5abe9e66b0
Ignore errors from rustfmt which may trigger error notification
2025-04-14 09:33:38 +08:00
Lukas Wirth
40076b577f
internal: Render sigantures with view hir command
2025-04-13 12:13:28 +02:00
Prajwal S N
c7e5e33bb6
refactor: migrate expand_rest_pattern to editor
...
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-11 21:25:53 +05:30
duncan
06770e0c9a
fix clippy::useless-conversion
2025-04-11 16:23:47 +01:00
duncan
d51ecf8a41
exclude build script targets from testing
2025-04-11 16:16:20 +01:00
duncan
6d50737732
test only packages that are workspace members
2025-04-11 15:03:38 +01:00
duncan
604d78568c
use underscores in the target name for test update notifications
2025-04-11 14:15:13 +01:00
Chayim Refael Friedman
96925d5105
Merge pull request #19570 from ChayimFriedman2/fix-store-panic
...
fix: Fix an incorrect `ExpressionStore` that was passed
2025-04-10 21:46:18 +00:00
Chayim Refael Friedman
8bde16dcce
Fix an incorrect ExpressionStore that was passed
...
It caused panics everywhere.
2025-04-11 00:34:13 +03:00
Prajwal S N
688464d5e6
fix: make::expr_call() -> CallExpr
...
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-11 02:57:44 +05:30
Prajwal S N
ab620e367d
fix: make::expr_method_call() -> MethodCallExpr
...
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-11 02:50:20 +05:30
Prajwal S N
728d72fbe1
fix: make::expr_closure() -> ClosureExpr
...
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-11 02:50:16 +05:30
Prajwal S N
92a7890814
fix: make::expr_paren() -> ParenExpr
...
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-11 02:50:13 +05:30
Prajwal S N
c254537465
refactor: editor for destructure_struct_binding
...
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-11 02:36:23 +05:30
David Barsky
bee999863b
Merge pull request #19565 from davidbarsky/davidbarsky/add-prime-caches-subcommand
...
internal: add `prime-caches` subcommand
2025-04-10 15:42:25 +00:00
David Barsky
71c4a0d4af
internal: cleanup CLI flag documentation
2025-04-10 11:30:59 -04:00
David Barsky
2888069a87
internal: add prime-caches subcommand
2025-04-10 11:18:33 -04:00
Florian Diebold
1bf840bb50
Merge pull request #19566 from flodiebold/push-vzpyzvpkwkyt
...
Fix dyn compatibility code bypassing callable_item_signature query
2025-04-10 15:11:34 +00:00
Florian Diebold
6e06115e6d
Fix dyn compatibility code bypassing callable_item_signature query
2025-04-10 16:56:17 +02:00
Lukas Wirth
8df812f14d
fix: Walk const block expressions for unsafety checking
2025-04-10 16:10:30 +02:00
Lukas Wirth
4fdc2507c6
fix: Fix invalid signature bitflags
2025-04-10 15:39:27 +02:00
Lukas Wirth
f880acd18c
Merge pull request #19461 from Hmikihiro/shadow_by_module
...
fix: shadow type by module
2025-04-10 12:20:14 +00:00
Lukas Wirth
55efab890b
Merge pull request #19559 from ChayimFriedman2/rust-186
...
internal: Switch to Rust 1.86.0
2025-04-10 08:33:14 +00:00
Chayim Refael Friedman
8a9a1e3345
Remove all upcasts!
...
It turns out there were a lot redundant too.
2025-04-10 11:08:38 +03:00
Hayashi Mikihiro
b75a3388f1
Update crates/hir-def/src/resolver.rs
...
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2025-04-10 16:29:10 +09:00
Hayashi Mikihiro
1b471ebfd5
TypeNs contain module
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-04-10 16:29:10 +09:00