Skip to content

Commit 694e910

Browse files
committed
Rust: Auto-format a test
1 parent 6e90823 commit 694e910

File tree

3 files changed

+1001
-1002
lines changed

3 files changed

+1001
-1002
lines changed
Lines changed: 2 additions & 2 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:2278:13:2278:31 | ...::from(...) |
43
| main.rs:2279:13:2279:31 | ...::from(...) |
54
| main.rs:2280:13:2280:31 | ...::from(...) |
6-
| main.rs:2286:13:2286:31 | ...::from(...) |
5+
| main.rs:2281:13:2281:31 | ...::from(...) |
76
| main.rs:2287:13:2287:31 | ...::from(...) |
87
| main.rs:2288:13:2288:31 | ...::from(...) |
8+
| main.rs:2289:13:2289:31 | ...::from(...) |

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1989,6 +1989,7 @@ mod impl_trait {
19891989
let c = uses_my_trait2(a); // $ type=c:S2 target=uses_my_trait2
19901990
let d = uses_my_trait2(S1); // $ type=d:S2 target=uses_my_trait2
19911991
let e = get_a_my_trait2(S1).get_a(); // $ target=get_a_my_trait2 target=MyTrait::get_a type=e:S1
1992+
19921993
// For this function the `impl` type does not appear in the root of the return type
19931994
let f = get_a_my_trait3(S1).unwrap().get_a(); // $ target=get_a_my_trait3 target=unwrap target=MyTrait::get_a type=f:S1
19941995
let g = get_a_my_trait4(S1).0.get_a(); // $ target=get_a_my_trait4 target=MyTrait::get_a type=g:S1
@@ -2487,8 +2488,7 @@ pub mod pattern_matching_experimental {
24872488
pub mod exec {
24882489
// a *greatly* simplified model of `MySqlConnection.execute` in SQLX
24892490

2490-
trait Connection {
2491-
}
2491+
trait Connection {}
24922492

24932493
trait Executor {
24942494
fn execute1(&self);
@@ -2519,7 +2519,6 @@ pub mod exec {
25192519
c.execute2::<&str>("SELECT * FROM users"); // $ MISSING: target=execute2
25202520
MySqlConnection::execute2(&c, "SELECT * FROM users"); // $ MISSING: target=execute2
25212521
MySqlConnection::execute2::<&str>(&c, "SELECT * FROM users"); // $ MISSING: target=execute2
2522-
25232522
}
25242523
}
25252524

0 commit comments

Comments
 (0)