aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists/src
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2019-08-05 21:42:38 +0100
committerFlorian Diebold <[email protected]>2019-08-12 20:43:00 +0100
commit22724f37f3ae73983bf700d10d80a8dbd4fa4073 (patch)
treef5970c453f15d2b60e7c7b026de34316a5c8f4e0 /crates/ra_assists/src
parent6cfdfdecbaed38534397f16e1ea1cda38b0b9395 (diff)
Lower fully qualified associated type paths
I.e. `<T as Trait>::Foo`.
Diffstat (limited to 'crates/ra_assists/src')
-rw-r--r--crates/ra_assists/src/auto_import.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_assists/src/auto_import.rs b/crates/ra_assists/src/auto_import.rs
index a32e2f9b6..1158adbbc 100644
--- a/crates/ra_assists/src/auto_import.rs
+++ b/crates/ra_assists/src/auto_import.rs
@@ -71,6 +71,7 @@ fn compare_path_segment(a: &SmolStr, b: &ast::PathSegment) -> bool {
71 ast::PathSegmentKind::SelfKw => a == "self", 71 ast::PathSegmentKind::SelfKw => a == "self",
72 ast::PathSegmentKind::SuperKw => a == "super", 72 ast::PathSegmentKind::SuperKw => a == "super",
73 ast::PathSegmentKind::CrateKw => a == "crate", 73 ast::PathSegmentKind::CrateKw => a == "crate",
74 ast::PathSegmentKind::Type { .. } => false, // not allowed in imports
74 } 75 }
75 } else { 76 } else {
76 false 77 false