summaryrefslogtreecommitdiff
path: root/rust/project_json.go
diff options
context:
space:
mode:
Diffstat (limited to 'rust/project_json.go')
-rw-r--r--rust/project_json.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/project_json.go b/rust/project_json.go
index c28bc7b76..e15ec0f22 100644
--- a/rust/project_json.go
+++ b/rust/project_json.go
@@ -54,7 +54,7 @@ type rustProjectCrate struct {
}
type rustProjectJson struct {
- Roots []string `json:"roots"`
+ // Roots []string `json:"roots"`
Crates []rustProjectCrate `json:"crates"`
}
@@ -250,7 +250,7 @@ func (singleton *projectGeneratorSingleton) addCrate(ctx android.SingletonContex
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))
+ // singleton.project.Roots = append(singleton.project.Roots, path.Dir(crate.RootModule))
return idx, true
}