Skip to content

Commit 0522f3f

Browse files
authored
Merge pull request github#18856 from hvitved/rust/inline-expectations-update
Rust: Update some inline expectation comments
2 parents 18a1ef5 + b402906 commit 0522f3f

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

rust/ql/test/library-tests/path-resolution/main.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ mod m8 {
180180
MyTrait::f(&x); // $ item=I48
181181
MyStruct::f(&x); // $ item=I53
182182
<MyStruct as // $ item=I50
183-
MyTrait // $ MISSING: item=I47
183+
MyTrait // $ item=I47
184184
> // $ MISSING: item=52
185185
::f(&x); // $ MISSING: item=I53
186186
let x = MyStruct {}; // $ item=I50
@@ -337,10 +337,10 @@ mod m15 {
337337
println!("m15::f");
338338
let x = S; // $ item=I81
339339
<S // $ item=I81
340-
as Trait1 // $ MISSING: item=I79
340+
as Trait1 // $ item=I79
341341
>::f(&x); // $ MISSING: item=I76
342342
<S // $ item=I81
343-
as Trait2 // MISSING: item=I82
343+
as Trait2 // $ item=I82
344344
>::f(&x); // $ MISSING: item=I78
345345
S::g(&x); // $ item=I77
346346
x.g(); // $ MISSING: item=I77
@@ -421,12 +421,12 @@ mod m16 {
421421
<S // $ item=I90
422422
as Trait1<
423423
S // $ item=I90
424-
> // $ MISSING: item=I86
424+
> // $ item=I86
425425
>::f(&x); // $ MISSING: item=I91
426426
<S // $ item=I90
427427
as Trait2<
428428
S // $ item=I90
429-
> // MISSING: item=I89
429+
> // $ item=I89
430430
>::f(&x); // $ MISSING: item=I93
431431
S::g(&x); // $ item=I92
432432
x.g(); // $ MISSING: item=I92
@@ -436,7 +436,7 @@ mod m16 {
436436
<S // $ item=I90
437437
as Trait1<
438438
S // $ item=I90
439-
> // $ MISSING: item=I86
439+
> // $ item=I86
440440
>::c; // $ MISSING: item=I95
441441
} // I83
442442
}

rust/ql/test/library-tests/path-resolution/path-resolution.expected

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
testFailures
2-
| main.rs:183:10:183:16 | MyTrait | Fixed missing result: item=I47 |
3-
| main.rs:340:14:340:19 | Trait1 | Fixed missing result: item=I79 |
4-
| main.rs:343:14:343:19 | Trait2 | Unexpected result: item=I82 |
5-
| main.rs:422:14:424:11 | Trait1::<...> | Fixed missing result: item=I86 |
6-
| main.rs:427:14:429:11 | Trait2::<...> | Unexpected result: item=I89 |
7-
| main.rs:437:14:439:11 | Trait1::<...> | Fixed missing result: item=I86 |
82
mod
93
| lib.rs:1:1:1:7 | mod my |
104
| main.rs:1:1:1:7 | mod my |

0 commit comments

Comments
 (0)