Skip to content

Commit c147323

Browse files
committed
Bump compile error + used nightly to fix compilation
1 parent db86e53 commit c147323

5 files changed

Lines changed: 24 additions & 24 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ matrix:
3838
allow_failures:
3939
- rust: nightly
4040
include:
41-
- rust: nightly-2018-08-17
41+
- rust: nightly-2018-11-27
4242
name: "Compile tests"
4343
script:
4444
- (cd diesel_compile_tests && cargo +$TRAVIS_RUST_VERSION test)

diesel_compile_tests/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ authors = ["Sean Griffin <sean@seantheprogrammer.com>"]
66
[workspace]
77

88
[dependencies]
9-
diesel = { version = "1.3.0", default-features = false, features = ["extras", "sqlite", "postgres", "mysql", "unstable"] }
10-
compiletest_rs = "=0.3.14"
9+
diesel = { version = "1.3.3", default-features = false, features = ["extras", "sqlite", "postgres", "mysql", "unstable"] }
10+
compiletest_rs = "=0.3.17"
1111

1212
[replace]
1313
"diesel:1.3.3" = { path = "../diesel" }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly-2018-08-17
1+
nightly-2018-11-27

diesel_compile_tests/tests/ui/as_changeset_missing_table_import.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
error[E0433]: failed to resolve. Use of undeclared type or module `users`
1+
error[E0433]: failed to resolve: use of undeclared type or module `users`
22
--> $DIR/as_changeset_missing_table_import.rs:5:8
33
|
44
5 | struct User {
5-
| ^^^^ Use of undeclared type or module `users`
5+
| ^^^^ use of undeclared type or module `users`
66

7-
error[E0433]: failed to resolve. Use of undeclared type or module `users`
7+
error[E0433]: failed to resolve: use of undeclared type or module `users`
88
--> $DIR/as_changeset_missing_table_import.rs:11:16
99
|
1010
11 | #[table_name = "users"]
11-
| ^^^^^^^ Use of undeclared type or module `users`
11+
| ^^^^^^^ use of undeclared type or module `users`
1212

1313
error: aborting due to 2 previous errors
1414

diesel_compile_tests/tests/ui/insertable_missing_table_or_column.stderr

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1-
error[E0433]: failed to resolve. Use of undeclared type or module `posts`
1+
error[E0433]: failed to resolve: use of undeclared type or module `posts`
22
--> $DIR/insertable_missing_table_or_column.rs:11:8
33
|
44
11 | struct Post {
5-
| ^^^^ Use of undeclared type or module `posts`
5+
| ^^^^ use of undeclared type or module `posts`
66

7-
error[E0433]: failed to resolve. Use of undeclared type or module `posts`
7+
error[E0433]: failed to resolve: use of undeclared type or module `posts`
88
--> $DIR/insertable_missing_table_or_column.rs:16:16
99
|
1010
16 | #[table_name = "posts"]
11-
| ^^^^^^^ Use of undeclared type or module `posts`
11+
| ^^^^^^^ use of undeclared type or module `posts`
1212

1313
error[E0412]: cannot find type `name` in module `users`
14-
--> $DIR/insertable_missing_table_or_column.rs:21:10
14+
--> $DIR/insertable_missing_table_or_column.rs:24:5
1515
|
16-
21 | #[derive(Insertable)]
17-
| ^^^^^^^^^^ not found in `users`
16+
24 | name: String
17+
| ^^^^ not found in `users`
1818

1919
error[E0425]: cannot find value `name` in module `users`
20-
--> $DIR/insertable_missing_table_or_column.rs:21:10
20+
--> $DIR/insertable_missing_table_or_column.rs:24:5
2121
|
22-
21 | #[derive(Insertable)]
23-
| ^^^^^^^^^^ not found in `users`
22+
24 | name: String
23+
| ^^^^ not found in `users`
2424

2525
error[E0412]: cannot find type `name` in module `users`
26-
--> $DIR/insertable_missing_table_or_column.rs:27:10
26+
--> $DIR/insertable_missing_table_or_column.rs:30:21
2727
|
28-
27 | #[derive(Insertable)]
29-
| ^^^^^^^^^^ not found in `users`
28+
30 | #[column_name = "name"]
29+
| ^^^^^^ not found in `users`
3030

3131
error[E0425]: cannot find value `name` in module `users`
32-
--> $DIR/insertable_missing_table_or_column.rs:27:10
32+
--> $DIR/insertable_missing_table_or_column.rs:30:21
3333
|
34-
27 | #[derive(Insertable)]
35-
| ^^^^^^^^^^ not found in `users`
34+
30 | #[column_name = "name"]
35+
| ^^^^^^ not found in `users`
3636

3737
error: aborting due to 6 previous errors
3838

0 commit comments

Comments
 (0)