diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-10-30 10:14:18 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-10-30 10:14:18 +0000 |
commit | f996b6019bd2f388bd9994ea83f25487eb111560 (patch) | |
tree | 4662b1c76bed5e830c1dae9ee5dbf47520f41e1e /crates/ra_ide_api/src/references | |
parent | 8046f5b24a316a50e109fe484cde4c128293fa97 (diff) | |
parent | c9cd6aa370667783292de3bc580e0503a409e453 (diff) |
Merge #2126
2126: Move ids to hir_def crate r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/references')
-rw-r--r-- | crates/ra_ide_api/src/references/search_scope.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/references/search_scope.rs b/crates/ra_ide_api/src/references/search_scope.rs index b6eb248b7..dbd1af597 100644 --- a/crates/ra_ide_api/src/references/search_scope.rs +++ b/crates/ra_ide_api/src/references/search_scope.rs | |||
@@ -120,7 +120,7 @@ impl NameDefinition { | |||
120 | return SearchScope::new(res); | 120 | return SearchScope::new(res); |
121 | } | 121 | } |
122 | if vis.as_str() == "pub" { | 122 | if vis.as_str() == "pub" { |
123 | let krate = self.container.krate(db).unwrap(); | 123 | let krate = self.container.krate(); |
124 | let crate_graph = db.crate_graph(); | 124 | let crate_graph = db.crate_graph(); |
125 | for crate_id in crate_graph.iter() { | 125 | for crate_id in crate_graph.iter() { |
126 | let mut crate_deps = crate_graph.dependencies(crate_id); | 126 | let mut crate_deps = crate_graph.dependencies(crate_id); |