Skip to content

Commit

Permalink
Add test showing that rust_analayzer aspect traverses aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
hlopko committed Mar 14, 2022
1 parent 5b9e685 commit 0a685bb
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
21 changes: 20 additions & 1 deletion test/rust_analyzer/aspect_traversal_test/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,33 @@ rust_library(
name = "mylib",
srcs = ["mylib.rs"],
proc_macro_deps = [":proc_macro_dep"],
deps = [":lib_dep"],
deps = [
":alias_dep",
":lib_dep",
],
)

rust_library(
name = "lib_dep",
srcs = ["lib_dep.rs"],
)

alias(
name = "alias_dep",
actual = ":actual_dep",
)

rust_library(
name = "actual_dep",
srcs = ["actual_dep.rs"],
deps = [":dep_of_aliased_dep"],
)

rust_library(
name = "dep_of_aliased_dep",
srcs = ["dep_of_aliased_dep.rs"],
)

rust_proc_macro(
name = "proc_macro_dep",
srcs = ["proc_macro_dep.rs"],
Expand Down
1 change: 1 addition & 0 deletions test/rust_analyzer/aspect_traversal_test/actual_dep.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ mod tests {

for dep in &[
"lib_dep",
"actual_dep",
"dep_of_aliased_dep",
"extra_test_dep",
"proc_macro_dep",
"extra_proc_macro_dep",
Expand Down

0 comments on commit 0a685bb

Please sign in to comment.