Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
673e443
Bump lodash from 4.17.21 to 4.17.23 in /editors/code
dependabot[bot] Jan 21, 2026
802ee01
fix: offer `toggle_macro_delimiter` in nested macro
A4-Tacks Jan 27, 2026
2755c37
Remove unncecessary `#[serde(default)]`
J3m3 Jan 28, 2026
c851897
Align with internal deserialized data structure
J3m3 Jan 28, 2026
fe9b791
feat: offer block let fallback postfix complete
A4-Tacks Feb 6, 2026
2eec617
internal: remove redundant double call in postfix
A4-Tacks Feb 7, 2026
99c45c5
fix: complete `.let` on block tail prefix expression
A4-Tacks Feb 7, 2026
0c724e5
Refactor handling of associated type shorthand for type parameters, i…
ChayimFriedman2 Feb 12, 2026
5c13e0c
Squash commits for review
tascord Feb 13, 2026
3a8a3c7
Remove resolved FIXME
tascord Feb 14, 2026
b451b42
internal: to use SmolStr in fn_param
A4-Tacks Feb 14, 2026
71e4b03
fix: no complete suggest param in complex pattern
A4-Tacks Feb 14, 2026
25a71ea
Fix predicates of builtin derive traits with two parameters defaultin…
ChayimFriedman2 Feb 15, 2026
1c462c2
fix: complete derive helpers on empty nameref
A4-Tacks Feb 15, 2026
6ac0ee9
add span_source to ProcMacroClientInterface
Shourya742 Feb 16, 2026
2541de3
update utils to include span_source in the interface
Shourya742 Feb 16, 2026
9378836
add span_source implementation in proc-macro-srv-cli
Shourya742 Feb 16, 2026
a7d65c7
add span source implementation to proc-macro-srv
Shourya742 Feb 16, 2026
7f2956e
extend span source and span source result variant in message
Shourya742 Feb 16, 2026
a9d3e24
add span source client implementation
Shourya742 Feb 16, 2026
14e6fe0
Merge pull request #21631 from ChayimFriedman2/cleanup-lowering-cycles
ShoyuVanilla Feb 16, 2026
12cacac
fix: Ensure cpu_profiler feature compiles on Rust edition 2024
Wilfred Feb 17, 2026
c22e240
Merge pull request #21659 from Wilfred/fix_profiler_build
lnicola Feb 17, 2026
3fbdb4d
Merge pull request #21652 from ChayimFriedman2/fix-builtin-derive
ShoyuVanilla Feb 17, 2026
cf246bd
Add some basic flycheck integration tests
Wilfred Feb 17, 2026
90f05e9
Merge pull request #21655 from A4-Tacks/derive-helpers-on-empty
ChayimFriedman2 Feb 18, 2026
d9a252f
Merge pull request #21650 from A4-Tacks/not-suggest-param-in-pat
ChayimFriedman2 Feb 18, 2026
e48f0fc
Merge pull request #21600 from A4-Tacks/let-in-prefix
ChayimFriedman2 Feb 18, 2026
6de75dc
Merge pull request #21598 from A4-Tacks/minor-postfix-double-call
ChayimFriedman2 Feb 18, 2026
0a6961d
fix: prevent path transformation of parameter names matching modules
raushan728 Feb 18, 2026
c48dfe0
Merge pull request #21657 from Shourya742/2026-02-16-add-span-source-…
Veykril Feb 18, 2026
cc3115d
Enable debug printing on more types
Wilfred Feb 17, 2026
e1fa34e
Merge pull request #21661 from Wilfred/initial_flycheck_tests
Veykril Feb 18, 2026
b7d95aa
internal: Add flycheck test for custom check command and debounce
Wilfred Feb 17, 2026
c992256
Only offer block let fallback in match-arm
A4-Tacks Feb 6, 2026
36f9838
Merge pull request #21594 from A4-Tacks/fallback-let-comp-block
ChayimFriedman2 Feb 18, 2026
140672a
Bump rustup-toolchain-install-master
lnicola Feb 18, 2026
ffc185a
Merge pull request #21673 from lnicola/bump-rustup-toolchain-install-…
ShoyuVanilla Feb 18, 2026
053cde5
Switch to env var CARGO_RESOLVER_LOCKFILE_PATH for copied lockfiles f…
ShoyuVanilla Feb 12, 2026
5d19cb9
Append `-Zlockfile-path`
ShoyuVanilla Feb 18, 2026
de77ad6
Merge pull request #21630 from ShoyuVanilla/cargo-lockfile
ShoyuVanilla Feb 18, 2026
1278a87
feat: offer on is_some_and for replace_is_method_with_if_let_method
A4-Tacks Feb 11, 2026
574c7b8
Add handling for cycles in `sizedness_constraint_for_ty()`
ChayimFriedman2 Feb 18, 2026
dd0c3a0
Merge pull request #21664 from ChayimFriedman2/representability
ShoyuVanilla Feb 18, 2026
69b08d5
Merge pull request #21623 from A4-Tacks/replace-is-some-and
ShoyuVanilla Feb 18, 2026
c8cf171
Merge pull request #21666 from Wilfred/flycheck_custom_check
ShoyuVanilla Feb 18, 2026
2a3d765
fix: exclude macro refs in tests when excludeTests is enabled
akashchakrabortymsc-cmd Feb 18, 2026
918214c
style: fix rustfmt formatting
akashchakrabortymsc-cmd Feb 18, 2026
9a57e95
Update vs_code.md flatpak SDK extensions to 25.08 runtime
pjhanzlik Feb 18, 2026
08a7b9a
Remove fixme
A4-Tacks Feb 19, 2026
89832e9
Add partial selection for generate_getter_or_setter
A4-Tacks Aug 1, 2025
5bb10ae
Fix some TryEnum reference assists
A4-Tacks Jan 2, 2026
94f6e7e
fix: filter non-value definitions in path transform
raushan728 Feb 19, 2026
4b02062
Merge pull request #20353 from A4-Tacks/gen-getter-range
ShoyuVanilla Feb 19, 2026
52b92ce
Merge pull request #21540 from J3m3/align-optional-fields
ShoyuVanilla Feb 19, 2026
c9a76c4
style: fix clippy collapsible_if warning
raushan728 Feb 19, 2026
f40376c
Merge pull request #21665 from raushan728/fix-param-name-bug
A4-Tacks Feb 19, 2026
0d226d1
Merge pull request #21676 from pjhanzlik/patch-1
lnicola Feb 19, 2026
348edc5
Merge pull request #21536 from A4-Tacks/toggle-nested-macro-delim
ChayimFriedman2 Feb 19, 2026
9884941
Merge pull request #21505 from rust-lang/dependabot/npm_and_yarn/edit…
ShoyuVanilla Feb 19, 2026
6d80670
test: fix exclude_tests_macro_refs test to use custom macro
akashchakrabortymsc-cmd Feb 19, 2026
5a3f581
style: fix rustfmt formatting
akashchakrabortymsc-cmd Feb 19, 2026
99b50e3
ci: rerun checks
akashchakrabortymsc-cmd Feb 19, 2026
c3dc938
Merge pull request #21675 from akashchakrabortymsc-cmd/fix/exclude-te…
ChayimFriedman2 Feb 19, 2026
102f2ec
Perf + Test Case RE: ShoyuVanilla
tascord Feb 19, 2026
c415833
Merge pull request #21635 from tascord/import-cfg-fixes
ShoyuVanilla Feb 20, 2026
b5eb4f6
Do strip references for desugar_try_expr
A4-Tacks Feb 20, 2026
c8d56aa
Merge pull request #21389 from A4-Tacks/assist-try-enum-ref
ChayimFriedman2 Feb 20, 2026
d778d12
fix: generate method assist uses enclosing impl block instead of firs…
akashchakrabortymsc-cmd Feb 20, 2026
aa2da37
style: apply rustfmt
akashchakrabortymsc-cmd Feb 20, 2026
ca3d3b7
fix: remove redundant comment
akashchakrabortymsc-cmd Feb 21, 2026
86d0e71
Merge pull request #21684 from akashchakrabortymsc-cmd/fix/generate-m…
A4-Tacks Feb 21, 2026
fba1ca8
fix: correctly parenthesize inverted condition in convert_if_to_bool_…
akashchakrabortymsc-cmd Feb 21, 2026
e883143
Merge pull request #21688 from akashchakrabortymsc-cmd/fix/convert-if…
A4-Tacks Feb 22, 2026
dbf337f
Fix another case where we forgot to put the type param for `PartialOr…
ChayimFriedman2 Feb 22, 2026
60369b2
Merge pull request #21692 from ChayimFriedman2/builtin-derive-param
ShoyuVanilla Feb 22, 2026
1b5a80c
Prepare for merging from rust-lang/rust
invalid-email-address Feb 23, 2026
419ee10
Merge ref 'c78a29473a68' from rust-lang/rust
invalid-email-address Feb 23, 2026
d8ffd91
Merge pull request #21694 from rust-lang/rustc-pull
lnicola Feb 23, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/tools/rust-analyzer/crates/ide-db/src/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1370,7 +1370,7 @@ fn is_name_ref_in_import(name_ref: &ast::NameRef) -> bool {
}

fn is_name_ref_in_test(sema: &Semantics<'_, RootDatabase>, name_ref: &ast::NameRef) -> bool {
name_ref.syntax().ancestors().any(|node| match ast::Fn::cast(node) {
sema.ancestors_with_macros(name_ref.syntax().clone()).any(|node| match ast::Fn::cast(node) {
Some(it) => sema.to_def(&it).is_some_and(|func| func.is_test(sema.db)),
None => false,
})
Expand Down
24 changes: 15 additions & 9 deletions src/tools/rust-analyzer/crates/ide/src/references.rs
Original file line number Diff line number Diff line change
Expand Up @@ -513,26 +513,32 @@ fn test() {
}

#[test]
fn test_access() {
fn exclude_tests_macro_refs() {
check(
r#"
struct S { f$0: u32 }
macro_rules! my_macro {
($e:expr) => { $e };
}

fn foo$0() -> i32 { 42 }

fn bar() {
foo();
}

#[test]
fn test() {
let mut x = S { f: 92 };
x.f = 92;
fn t2() {
my_macro!(foo());
}
"#,
expect![[r#"
f Field FileId(0) 11..17 11..12
foo Function FileId(0) 52..74 55..58

FileId(0) 61..62 read test
FileId(0) 76..77 write test
FileId(0) 91..94
FileId(0) 133..136 test
"#]],
);
}

#[test]
fn test_struct_literal_after_space() {
check(
Expand Down