Skip to content

Commit bd1ece2

Browse files
committed
fix ui errors
1 parent 351b691 commit bd1ece2

5 files changed

Lines changed: 15 additions & 22 deletions

pgrx-tests/tests/todo/busted-exotic-signature.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ error[E0277]: the trait bound `Vec<Option<PgHeapTuple<'_, AllocatedByRust>>>: Ar
55
| ------------ in this procedural macro expansion
66
11 | fn exotic_signature(
77
12 | _cats: pgrx::default!(
8-
| ^^^^^ the trait `ArgAbi<'_>` is not implemented for `Vec<Option<PgHeapTuple<'_, AllocatedByRust>>>`, which is required by `Option<Vec<Option<PgHeapTuple<'_, AllocatedByRust>>>>: ArgAbi<'_>`
8+
| ^^^^^ the trait `ArgAbi<'_>` is not implemented for `Vec<Option<PgHeapTuple<'_, AllocatedByRust>>>`
99
|
1010
= help: the following other types implement trait `ArgAbi<'fcx>`:
1111
Vec<Option<T>>

pgrx-tests/tests/todo/composite-types-broken-on-spi.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ error[E0277]: the trait bound `Vec<Option<pgrx::prelude::PgHeapTuple<'_, pgrx::A
4545
| ------------ in this procedural macro expansion
4646
96 | fn sum_scritches_for_names_optional_items(
4747
97 | dogs: Option<Vec<Option<pgrx::composite_type!("Dog")>>>,
48-
| ^^^^ the trait `ArgAbi<'_>` is not implemented for `Vec<Option<pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>>`, which is required by `Option<Vec<Option<pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>>>: ArgAbi<'_>`
48+
| ^^^^ the trait `ArgAbi<'_>` is not implemented for `Vec<Option<pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>>`
4949
|
5050
= help: the following other types implement trait `ArgAbi<'fcx>`:
5151
Vec<Option<T>>
@@ -66,7 +66,7 @@ error[E0277]: `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
6666
| ^^^^ `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>` is not an iterator
6767
|
6868
= help: the trait `IntoIterator` is not implemented for `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
69-
= help: the trait `IntoIterator` is implemented for `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
69+
but trait `IntoIterator` is implemented for it
7070

7171
error[E0277]: `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>` is not an iterator
7272
--> tests/todo/composite-types-broken-on-spi.rs:145:20
@@ -75,7 +75,7 @@ error[E0277]: `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
7575
| ^^^^ `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>` is not an iterator
7676
|
7777
= help: the trait `IntoIterator` is not implemented for `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
78-
= help: the trait `IntoIterator` is implemented for `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
78+
but trait `IntoIterator` is implemented for it
7979

8080
error[E0277]: `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>` is not an iterator
8181
--> tests/todo/composite-types-broken-on-spi.rs:162:20
@@ -84,7 +84,7 @@ error[E0277]: `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
8484
| ^^^^ `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>` is not an iterator
8585
|
8686
= help: the trait `IntoIterator` is not implemented for `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
87-
= help: the trait `IntoIterator` is implemented for `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
87+
but trait `IntoIterator` is implemented for it
8888

8989
error[E0308]: mismatched types
9090
--> tests/todo/composite-types-broken-on-spi.rs:11:5

pgrx-tests/tests/todo/for-dog-in-dogs.stderr

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ error[E0277]: `pgrx::VariadicArray<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::Allo
55
| ^^^^ `pgrx::VariadicArray<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>` is not an iterator
66
|
77
= help: the trait `IntoIterator` is not implemented for `pgrx::VariadicArray<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
8-
= help: the trait `IntoIterator` is implemented for `pgrx::VariadicArray<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
8+
but trait `IntoIterator` is implemented for it
99

1010
error[E0277]: `pgrx::VariadicArray<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>` is not an iterator
1111
--> tests/todo/for-dog-in-dogs.rs:32:16
@@ -14,7 +14,7 @@ error[E0277]: `pgrx::VariadicArray<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::Allo
1414
| ^^^^ `pgrx::VariadicArray<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>` is not an iterator
1515
|
1616
= help: the trait `IntoIterator` is not implemented for `pgrx::VariadicArray<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
17-
= help: the trait `IntoIterator` is implemented for `pgrx::VariadicArray<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
17+
but trait `IntoIterator` is implemented for it
1818

1919
error[E0277]: `pgrx::VariadicArray<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>` is not an iterator
2020
--> tests/todo/for-dog-in-dogs.rs:48:16
@@ -23,7 +23,7 @@ error[E0277]: `pgrx::VariadicArray<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::Allo
2323
| ^^^^ `pgrx::VariadicArray<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>` is not an iterator
2424
|
2525
= help: the trait `IntoIterator` is not implemented for `pgrx::VariadicArray<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
26-
= help: the trait `IntoIterator` is implemented for `pgrx::VariadicArray<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
26+
but trait `IntoIterator` is implemented for it
2727

2828
error[E0277]: `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>` is not an iterator
2929
--> tests/todo/for-dog-in-dogs.rs:65:16
@@ -32,7 +32,7 @@ error[E0277]: `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
3232
| ^^^^ `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>` is not an iterator
3333
|
3434
= help: the trait `IntoIterator` is not implemented for `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
35-
= help: the trait `IntoIterator` is implemented for `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
35+
but trait `IntoIterator` is implemented for it
3636

3737
error[E0277]: `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>` is not an iterator
3838
--> tests/todo/for-dog-in-dogs.rs:85:16
@@ -41,7 +41,7 @@ error[E0277]: `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
4141
| ^^^^ `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>` is not an iterator
4242
|
4343
= help: the trait `IntoIterator` is not implemented for `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
44-
= help: the trait `IntoIterator` is implemented for `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
44+
but trait `IntoIterator` is implemented for it
4545

4646
error[E0277]: `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>` is not an iterator
4747
--> tests/todo/for-dog-in-dogs.rs:102:16
@@ -50,4 +50,4 @@ error[E0277]: `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
5050
| ^^^^ `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>` is not an iterator
5151
|
5252
= help: the trait `IntoIterator` is not implemented for `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
53-
= help: the trait `IntoIterator` is implemented for `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
53+
but trait `IntoIterator` is implemented for it

pgrx-tests/tests/todo/roundtrip-tests.stderr

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ error[E0277]: the trait bound `Vec<Option<&[u8]>>: ArgAbi<'_>` is not satisfied
5858
54 | | test_rt_array_bytea,
5959
55 | | Vec<Option<&[u8]>>,
6060
... |
61-
63 | | ]
6261
64 | | );
6362
| |_____- in this macro invocation
6463
|
@@ -88,7 +87,6 @@ error[E0277]: the trait bound `Vec<Option<&[u8]>>: FromDatum` is not satisfied
8887
54 | | test_rt_array_bytea,
8988
55 | | Vec<Option<&[u8]>>,
9089
... |
91-
63 | | ]
9290
64 | | );
9391
| |_____- in this macro invocation
9492
|
@@ -103,15 +101,15 @@ note: required by a bound in `pgrx::Spi::get_one_with_args`
103101
| ^^^^^^^^^ required by this bound in `Spi::get_one_with_args`
104102
= note: this error originates in the macro `roundtrip_test` which comes from the expansion of the macro `roundtrip` (in Nightly builds, run with -Z macro-backtrace for more info)
105103

106-
error[E0277]: the trait bound `Vec<Option<&str>>: FromDatum` is not satisfied
104+
error[E0284]: type annotations needed: cannot satisfy `for<'arr> <Option<&str> as UnboxDatum>::As<'arr> == Option<&str>`
107105
--> tests/todo/roundtrip-tests.rs:36:38
108106
|
109107
36 | let result: $rtype = Spi::get_one_with_args(
110108
| ______________________________________^
111109
37 | | &format!("SELECT {}($1)", stringify!(tests.$fname)),
112110
38 | | &[value.into()],
113111
39 | | )?
114-
| |_________________^ the trait `FromDatum` is not implemented for `Vec<Option<&str>>`
112+
| |_________________^ cannot satisfy `for<'arr> <Option<&str> as UnboxDatum>::As<'arr> == Option<&str>`
115113
...
116114
66 | / roundtrip!(
117115
67 | | rt_array_refstr,
@@ -121,10 +119,7 @@ error[E0277]: the trait bound `Vec<Option<&str>>: FromDatum` is not satisfied
121119
71 | | );
122120
| |_____- in this macro invocation
123121
|
124-
= help: the following other types implement trait `FromDatum`:
125-
Vec<Option<T>>
126-
Vec<T>
127-
Vec<u8>
122+
= note: required for `Vec<Option<&str>>` to implement `FromDatum`
128123
note: required by a bound in `pgrx::Spi::get_one_with_args`
129124
--> $WORKSPACE/pgrx/src/spi.rs
130125
|
@@ -143,7 +138,6 @@ error[E0277]: the trait bound `Vec<Option<&CStr>>: ArgAbi<'_>` is not satisfied
143138
75 | | test_rt_array_cstr,
144139
76 | | Vec<Option<&'static CStr>>,
145140
... |
146-
84 | | ]
147141
85 | | );
148142
| |_____- in this macro invocation
149143
|
@@ -173,7 +167,6 @@ error[E0277]: the trait bound `Vec<Option<&CStr>>: FromDatum` is not satisfied
173167
75 | | test_rt_array_cstr,
174168
76 | | Vec<Option<&'static CStr>>,
175169
... |
176-
84 | | ]
177170
85 | | );
178171
| |_____- in this macro invocation
179172
|

pgrx-tests/tests/todo/vec-option-composite_type-nesting-problems.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ error[E0277]: the trait bound `Vec<Option<pgrx::prelude::PgHeapTuple<'_, pgrx::A
4545
| ------------ in this procedural macro expansion
4646
88 | fn sum_scritches_for_names_optional_items(
4747
89 | dogs: Option<Vec<Option<pgrx::composite_type!("Dog")>>>,
48-
| ^^^^ the trait `ArgAbi<'_>` is not implemented for `Vec<Option<pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>>`, which is required by `Option<Vec<Option<pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>>>: ArgAbi<'_>`
48+
| ^^^^ the trait `ArgAbi<'_>` is not implemented for `Vec<Option<pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>>`
4949
|
5050
= help: the following other types implement trait `ArgAbi<'fcx>`:
5151
Vec<Option<T>>

0 commit comments

Comments
 (0)