We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 476d043 commit 8862fe6Copy full SHA for 8862fe6
crates/hir/src/lib.rs
@@ -2807,6 +2807,10 @@ impl Type {
2807
let subst = TyBuilder::subst_for_def(db, id, None).fill_with_unknown().build();
2808
Some(subst)
2809
}
2810
+ ItemContainerId::ImplId(id) => {
2811
+ let subst = TyBuilder::subst_for_def(db, id, None).fill_with_unknown().build();
2812
+ Some(subst)
2813
+ }
2814
_ => None,
2815
},
2816
crates/ide/src/highlight_related.rs
@@ -1373,6 +1373,22 @@ fn main() {
1373
().func$0();
1374
//^^^^
1375
1376
+"#,
1377
+ );
1378
1379
+
1380
+ #[test]
1381
+ fn test_assoc_type_highlighting() {
1382
+ check(
1383
+ r#"
1384
+trait Trait {
1385
+ type Output;
1386
+ // ^^^^^^
1387
+}
1388
+impl Trait for () {
1389
+ type Output$0 = ();
1390
1391
1392
"#,
1393
);
1394
0 commit comments