Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pgrx-tests/tests/todo/busted-exotic-signature.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ error[E0277]: the trait bound `Vec<Option<PgHeapTuple<'_, AllocatedByRust>>>: Ar
| ------------ in this procedural macro expansion
11 | fn exotic_signature(
12 | _cats: pgrx::default!(
| ^^^^^ the trait `ArgAbi<'_>` is not implemented for `Vec<Option<PgHeapTuple<'_, AllocatedByRust>>>`, which is required by `Option<Vec<Option<PgHeapTuple<'_, AllocatedByRust>>>>: ArgAbi<'_>`
| ^^^^^ the trait `ArgAbi<'_>` is not implemented for `Vec<Option<PgHeapTuple<'_, AllocatedByRust>>>`
|
= help: the following other types implement trait `ArgAbi<'fcx>`:
Vec<Option<T>>
Expand Down
8 changes: 4 additions & 4 deletions pgrx-tests/tests/todo/composite-types-broken-on-spi.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ error[E0277]: the trait bound `Vec<Option<pgrx::prelude::PgHeapTuple<'_, pgrx::A
| ------------ in this procedural macro expansion
96 | fn sum_scritches_for_names_optional_items(
97 | dogs: Option<Vec<Option<pgrx::composite_type!("Dog")>>>,
| ^^^^ 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<'_>`
| ^^^^ the trait `ArgAbi<'_>` is not implemented for `Vec<Option<pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>>`
|
= help: the following other types implement trait `ArgAbi<'fcx>`:
Vec<Option<T>>
Expand All @@ -66,7 +66,7 @@ error[E0277]: `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
| ^^^^ `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>` is not an iterator
|
= help: the trait `IntoIterator` is not implemented for `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
= help: the trait `IntoIterator` is implemented for `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
but trait `IntoIterator` is implemented for it

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

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

error[E0308]: mismatched types
--> tests/todo/composite-types-broken-on-spi.rs:11:5
Expand Down
12 changes: 6 additions & 6 deletions pgrx-tests/tests/todo/for-dog-in-dogs.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ error[E0277]: `pgrx::VariadicArray<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::Allo
| ^^^^ `pgrx::VariadicArray<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>` is not an iterator
|
= help: the trait `IntoIterator` is not implemented for `pgrx::VariadicArray<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
= help: the trait `IntoIterator` is implemented for `pgrx::VariadicArray<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
but trait `IntoIterator` is implemented for it

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

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

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

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

error[E0277]: `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>` is not an iterator
--> tests/todo/for-dog-in-dogs.rs:102:16
Expand All @@ -50,4 +50,4 @@ error[E0277]: `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
| ^^^^ `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>` is not an iterator
|
= help: the trait `IntoIterator` is not implemented for `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
= help: the trait `IntoIterator` is implemented for `Array<'_, pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>`
but trait `IntoIterator` is implemented for it
13 changes: 3 additions & 10 deletions pgrx-tests/tests/todo/roundtrip-tests.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ error[E0277]: the trait bound `Vec<Option<&[u8]>>: ArgAbi<'_>` is not satisfied
54 | | test_rt_array_bytea,
55 | | Vec<Option<&[u8]>>,
... |
63 | | ]
64 | | );
| |_____- in this macro invocation
|
Expand Down Expand Up @@ -88,7 +87,6 @@ error[E0277]: the trait bound `Vec<Option<&[u8]>>: FromDatum` is not satisfied
54 | | test_rt_array_bytea,
55 | | Vec<Option<&[u8]>>,
... |
63 | | ]
64 | | );
| |_____- in this macro invocation
|
Expand All @@ -103,15 +101,15 @@ note: required by a bound in `pgrx::Spi::get_one_with_args`
| ^^^^^^^^^ required by this bound in `Spi::get_one_with_args`
= 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)

error[E0277]: the trait bound `Vec<Option<&str>>: FromDatum` is not satisfied
error[E0284]: type annotations needed: cannot satisfy `for<'arr> <Option<&str> as UnboxDatum>::As<'arr> == Option<&str>`
--> tests/todo/roundtrip-tests.rs:36:38
|
36 | let result: $rtype = Spi::get_one_with_args(
| ______________________________________^
37 | | &format!("SELECT {}($1)", stringify!(tests.$fname)),
38 | | &[value.into()],
39 | | )?
| |_________________^ the trait `FromDatum` is not implemented for `Vec<Option<&str>>`
| |_________________^ cannot satisfy `for<'arr> <Option<&str> as UnboxDatum>::As<'arr> == Option<&str>`
...
66 | / roundtrip!(
67 | | rt_array_refstr,
Expand All @@ -121,10 +119,7 @@ error[E0277]: the trait bound `Vec<Option<&str>>: FromDatum` is not satisfied
71 | | );
| |_____- in this macro invocation
|
= help: the following other types implement trait `FromDatum`:
Vec<Option<T>>
Vec<T>
Vec<u8>
= note: required for `Vec<Option<&str>>` to implement `FromDatum`
note: required by a bound in `pgrx::Spi::get_one_with_args`
--> $WORKSPACE/pgrx/src/spi.rs
|
Expand All @@ -143,7 +138,6 @@ error[E0277]: the trait bound `Vec<Option<&CStr>>: ArgAbi<'_>` is not satisfied
75 | | test_rt_array_cstr,
76 | | Vec<Option<&'static CStr>>,
... |
84 | | ]
85 | | );
| |_____- in this macro invocation
|
Expand Down Expand Up @@ -173,7 +167,6 @@ error[E0277]: the trait bound `Vec<Option<&CStr>>: FromDatum` is not satisfied
75 | | test_rt_array_cstr,
76 | | Vec<Option<&'static CStr>>,
... |
84 | | ]
85 | | );
| |_____- in this macro invocation
|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ error[E0277]: the trait bound `Vec<Option<pgrx::prelude::PgHeapTuple<'_, pgrx::A
| ------------ in this procedural macro expansion
88 | fn sum_scritches_for_names_optional_items(
89 | dogs: Option<Vec<Option<pgrx::composite_type!("Dog")>>>,
| ^^^^ 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<'_>`
| ^^^^ the trait `ArgAbi<'_>` is not implemented for `Vec<Option<pgrx::prelude::PgHeapTuple<'_, pgrx::AllocatedByRust>>>`
|
= help: the following other types implement trait `ArgAbi<'fcx>`:
Vec<Option<T>>
Expand Down
Loading