mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Rust: Remove comment from type inference test
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
multipleCallTargets
|
||||
| dereference.rs:61:15:61:24 | e1.deref() |
|
||||
| main.rs:2314:13:2314:31 | ...::from(...) |
|
||||
| main.rs:2315:13:2315:31 | ...::from(...) |
|
||||
| main.rs:2308:13:2308:31 | ...::from(...) |
|
||||
| main.rs:2309:13:2309:31 | ...::from(...) |
|
||||
| main.rs:2310:13:2310:31 | ...::from(...) |
|
||||
| main.rs:2316:13:2316:31 | ...::from(...) |
|
||||
| main.rs:2322:13:2322:31 | ...::from(...) |
|
||||
| main.rs:2323:13:2323:31 | ...::from(...) |
|
||||
| main.rs:2324:13:2324:31 | ...::from(...) |
|
||||
| main.rs:2317:13:2317:31 | ...::from(...) |
|
||||
| main.rs:2318:13:2318:31 | ...::from(...) |
|
||||
|
||||
@@ -2068,12 +2068,6 @@ mod indexers {
|
||||
}
|
||||
|
||||
fn analyze_slice(slice: &[S]) {
|
||||
// NOTE: `slice` gets the spurious type `[]` because the desugaring of
|
||||
// the index expression adds an implicit borrow. `&slice` has the type
|
||||
// `&&[S]`, but the `index` methods takes a `&[S]`, so Rust adds an
|
||||
// implicit dereference. We cannot currently handle a position that is
|
||||
// both implicitly dereferenced and implicitly borrowed, so the extra
|
||||
// type sneaks in.
|
||||
let x = slice[0].foo(); // $ target=foo type=x:S target=index
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user