Skip to content

Commit 10c8086

Browse files
committed
chore: update compile test
1 parent 3b52809 commit 10c8086

12 files changed

+71
-68
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: Compound attribute was specified but no query options were. Specify how this field should be queried with the attribute #[cipherstash(query = <option>, compound = "email#name")]
2-
--> tests/./ui/compound-index-missing-config.rs:5:42
2+
--> tests/ui/compound-index-missing-config.rs
33
|
4-
5 | #[cipherstash(compound = "email#name")]
4+
| #[cipherstash(compound = "email#name")]
55
| ^
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error: Not all fields were annotated with the #[cipherstash(compound)] attribute. Missing fields: name
2-
--> tests/./ui/compound-index-missing-field.rs:3:10
2+
--> tests/ui/compound-index-missing-field.rs
33
|
4-
3 | #[derive(Encryptable)]
4+
| #[derive(Encryptable)]
55
| ^^^^^^^^^^^
66
|
77
= note: this error originates in the derive macro `Encryptable` (in Nightly builds, run with -Z macro-backtrace for more info)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: Compound index 'email#name' does not include current field 'age'.
2-
--> tests/./ui/compound-index-too-many-fields.rs:9:36
2+
--> tests/ui/compound-index-too-many-fields.rs
33
|
4-
9 | #[cipherstash(query = "exact", compound = "email#name")]
4+
| #[cipherstash(query = "exact", compound = "email#name")]
55
| ^^^^^^^^^^^^^^^^^^^^^^^
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: Unsupported index type: blah
2-
--> tests/./ui/compound-index-unsupported.rs:8:27
2+
--> tests/ui/compound-index-unsupported.rs
33
|
4-
8 | #[cipherstash(query = "blah", compound = "email#name")]
4+
| #[cipherstash(query = "blah", compound = "email#name")]
55
| ^^^^^^

tests/ui/index-unsupported.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: Unsupported index type: blah
2-
--> tests/./ui/index-unsupported.rs:5:27
2+
--> tests/ui/index-unsupported.rs
33
|
4-
5 | #[cipherstash(query = "blah")]
4+
| #[cipherstash(query = "blah")]
55
| ^^^^^^

tests/ui/invalid-field-name.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: Invalid field '__name': fields must not be prefixed with __
2-
--> tests/./ui/invalid-field-name.rs:8:5
2+
--> tests/ui/invalid-field-name.rs
33
|
4-
8 | __name: String
4+
| __name: String
55
| ^^^^^^^^^^^^^^
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error: Index 'name' with type 'exact' has been defined more than once
2-
--> tests/./ui/no-multi-same-index-per-field.rs:3:10
2+
--> tests/ui/no-multi-same-index-per-field.rs
33
|
4-
3 | #[derive(Encryptable)]
4+
| #[derive(Encryptable)]
55
| ^^^^^^^^^^^
66
|
77
= note: this error originates in the derive macro `Encryptable` (in Nightly builds, run with -Z macro-backtrace for more info)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: field named 'pk' must be annotated with #[partition_key]
2-
--> tests/./ui/pk-field-no-partition.rs:5:5
2+
--> tests/ui/pk-field-no-partition.rs
33
|
4-
5 | pk: String,
4+
| pk: String,
55
| ^^^^^^^^^^
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error: field 'email' cannot be used as partition key as struct contains field named 'pk' which must be used
2-
--> tests/./ui/pk-field-wrong-partition.rs:5:5
2+
--> tests/ui/pk-field-wrong-partition.rs
33
|
4-
5 | / #[partition_key]
5-
6 | | #[cipherstash(query = "exact", compound = "email#name")]
6-
7 | | email: String,
4+
| / #[partition_key]
5+
| | #[cipherstash(query = "exact", compound = "email#name")]
6+
| | email: String,
77
| |_________________^

tests/ui/sk-field-no-sort.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: field named 'sk' must be annotated with #[sort_key]
2-
--> tests/./ui/sk-field-no-sort.rs:11:5
3-
|
4-
11 | sk: String,
5-
| ^^^^^^^^^^
2+
--> tests/ui/sk-field-no-sort.rs
3+
|
4+
| sk: String,
5+
| ^^^^^^^^^^

0 commit comments

Comments
 (0)