summaryrefslogtreecommitdiff
path: root/rust/project_json.go
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2021-08-11 05:30:45 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2021-08-11 05:30:45 +0000
commit95048e962531c44b7595bb99101be876a814ee4c (patch)
tree1ee2f844150ea522a95e7958bd1e69e86a09b5f5 /rust/project_json.go
parent0bcba80823b07b5e12f655fde6f9c019d1a0d03d (diff)
parent90c4b14a302bf0884d6672f5d64fc12a0034dfc8 (diff)
Merge "Removed commented out code"
Diffstat (limited to 'rust/project_json.go')
-rw-r--r--rust/project_json.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/rust/project_json.go b/rust/project_json.go
index e15ec0f22..faa7db5f7 100644
--- a/rust/project_json.go
+++ b/rust/project_json.go
@@ -54,7 +54,6 @@ type rustProjectCrate struct {
}
type rustProjectJson struct {
- // Roots []string `json:"roots"`
Crates []rustProjectCrate `json:"crates"`
}
@@ -248,9 +247,6 @@ func (singleton *projectGeneratorSingleton) addCrate(ctx android.SingletonContex
idx := len(singleton.project.Crates)
singleton.knownCrates[rModule.Name()] = crateInfo{Idx: idx, Deps: deps}
singleton.project.Crates = append(singleton.project.Crates, crate)
- // rust-analyzer requires that all crates belong to at least one root:
- // https://github.com/rust-analyzer/rust-analyzer/issues/4735.
- // singleton.project.Roots = append(singleton.project.Roots, path.Dir(crate.RootModule))
return idx, true
}