aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists
diff options
context:
space:
mode:
authorarsdragonfly <[email protected]>2019-09-27 21:17:23 +0100
committerarsdragonfly <[email protected]>2019-09-27 21:17:23 +0100
commit84340db87aed477f61bf46ba5e4a75f3eb672237 (patch)
treeaf7fe4eb8045ccb1b73bcdcd80b3a729062bd308 /crates/ra_assists
parentd1988a17f4ceb90bcdaed79072c4b7f647c86854 (diff)
parent21fa889cf3f70c507e3b9f2f6362e65cbb8ed955 (diff)
Merge branch 'master' of https://github.com/rust-analyzer/rust-analyzer
Diffstat (limited to 'crates/ra_assists')
-rw-r--r--crates/ra_assists/src/assists/auto_import.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_assists/src/assists/auto_import.rs b/crates/ra_assists/src/assists/auto_import.rs
index a91c170b9..419e93330 100644
--- a/crates/ra_assists/src/assists/auto_import.rs
+++ b/crates/ra_assists/src/assists/auto_import.rs
@@ -511,7 +511,7 @@ pub fn collect_hir_path_segments(path: &hir::Path) -> Option<Vec<SmolStr>> {
511 hir::PathKind::Plain => {} 511 hir::PathKind::Plain => {}
512 hir::PathKind::Self_ => ps.push("self".into()), 512 hir::PathKind::Self_ => ps.push("self".into()),
513 hir::PathKind::Super => ps.push("super".into()), 513 hir::PathKind::Super => ps.push("super".into()),
514 hir::PathKind::Type(_) => return None, 514 hir::PathKind::Type(_) | hir::PathKind::DollarCrate(_) => return None,
515 } 515 }
516 for s in path.segments.iter() { 516 for s in path.segments.iter() {
517 ps.push(s.name.to_string().into()); 517 ps.push(s.name.to_string().into());