File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed
test/library-tests/path-resolution Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -373,6 +373,8 @@ abstract class ImplOrTraitItemNode extends ItemNode {
373
373
/** Gets an item that may refer to this node using `Self`. */
374
374
pragma [ nomagic]
375
375
ItemNode getAnItemInSelfScope ( ) {
376
+ result = this
377
+ or
376
378
result .getImmediateParent ( ) = this
377
379
or
378
380
exists ( ItemNode mid |
Original file line number Diff line number Diff line change @@ -532,7 +532,7 @@ mod m23 {
532
532
533
533
#[ rustfmt:: skip]
534
534
impl Trait1 <
535
- Self // $ MISSING: item=I4
535
+ Self // $ item=I4
536
536
> // $ item=I2
537
537
for S { // $ item=I4
538
538
fn f ( & self ) {
Original file line number Diff line number Diff line change @@ -236,6 +236,7 @@ resolvePath
236
236
| main.rs:517:21:517:29 | ...::A | main.rs:499:13:499:13 | A |
237
237
| main.rs:518:21:518:28 | MyStruct | main.rs:502:9:502:28 | struct MyStruct |
238
238
| main.rs:534:10:536:5 | Trait1::<...> | main.rs:524:5:529:5 | trait Trait1 |
239
+ | main.rs:535:7:535:10 | Self | main.rs:531:5:531:13 | struct S |
239
240
| main.rs:537:11:537:11 | S | main.rs:531:5:531:13 | struct S |
240
241
| main.rs:545:17:545:17 | S | main.rs:531:5:531:13 | struct S |
241
242
| main.rs:551:5:551:6 | my | main.rs:1:1:1:7 | mod my |
You can’t perform that action at this time.
0 commit comments