Skip to content

Commit ba1957d

Browse files
committed
Rust: Remove comment from type inference test
1 parent 1b005a2 commit ba1957d

File tree

3 files changed

+1007
-1013
lines changed

3 files changed

+1007
-1013
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
multipleCallTargets
22
| dereference.rs:61:15:61:24 | e1.deref() |
3-
| main.rs:2314:13:2314:31 | ...::from(...) |
4-
| main.rs:2315:13:2315:31 | ...::from(...) |
3+
| main.rs:2308:13:2308:31 | ...::from(...) |
4+
| main.rs:2309:13:2309:31 | ...::from(...) |
5+
| main.rs:2310:13:2310:31 | ...::from(...) |
56
| main.rs:2316:13:2316:31 | ...::from(...) |
6-
| main.rs:2322:13:2322:31 | ...::from(...) |
7-
| main.rs:2323:13:2323:31 | ...::from(...) |
8-
| main.rs:2324:13:2324:31 | ...::from(...) |
7+
| main.rs:2317:13:2317:31 | ...::from(...) |
8+
| main.rs:2318:13:2318:31 | ...::from(...) |

rust/ql/test/library-tests/type-inference/main.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2068,12 +2068,6 @@ mod indexers {
20682068
}
20692069

20702070
fn analyze_slice(slice: &[S]) {
2071-
// NOTE: `slice` gets the spurious type `[]` because the desugaring of
2072-
// the index expression adds an implicit borrow. `&slice` has the type
2073-
// `&&[S]`, but the `index` methods takes a `&[S]`, so Rust adds an
2074-
// implicit dereference. We cannot currently handle a position that is
2075-
// both implicitly dereferenced and implicitly borrowed, so the extra
2076-
// type sneaks in.
20772071
let x = slice[0].foo(); // $ target=foo type=x:S target=index
20782072
}
20792073

0 commit comments

Comments
 (0)