-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Trying to make the examples work with pgx=0.7.3
(including pgx-macros
and pgx-tests
)
Throwing following errors
error: Got unknown return type: ImplTrait(TypeImplTrait { impl_token: Impl, bounds: [Trait(TraitBound { paren_token: None, modifier: None, lifetimes: None, path: Path { leading_colon: None, segments: [PathSegment { ident: Ident { ident: "std", span: #0 bytes(469..472) }, arguments: None }, Colon2, PathSegment { ident: Ident { ident: "iter", span: #0 bytes(474..478) }, arguments: None }, Colon2, PathSegment { ident: Ident { ident: "Iterator", span: #0 bytes(480..488) }, arguments: AngleBracketed(AngleBracketedGenericArguments { colon2_token: None, lt_token: Lt, args: [Binding(Binding { ident: Ident { ident: "Item", span: #0 bytes(489..493) }, eq_token: Eq, ty: Path(TypePath { qself: None, path: Path { leading_colon: None, segments: [PathSegment { ident: Ident { ident: "i64", span: #0 bytes(496..499) }, arguments: None }] } }) })], gt_token: Gt }) }] } })] })
--> src/lib.rs:19:1
|
19 | #[pg_extern]
| ^^^^^^^^^^^^
|
= note: this error originates in the attribute macro `pg_extern` (in Nightly builds, run with -Z macro-backtrace for more info)
error: Got unknown return type: ImplTrait(TypeImplTrait { impl_token: Impl, bounds: [Trait(TraitBound { paren_token: None, modifier: None, lifetimes: None, path: Path { leading_colon: None, segments: [PathSegment { ident: Ident { ident: "std", span: #0 bytes(674..677) }, arguments: None }, Colon2, PathSegment { ident: Ident { ident: "iter", span: #0 bytes(679..683) }, arguments: None }, Colon2, PathSegment { ident: Ident { ident: "Iterator", span: #0 bytes(685..693) }, arguments: AngleBracketed(AngleBracketedGenericArguments { colon2_token: None, lt_token: Lt, args: [Binding(Binding { ident: Ident { ident: "Item", span: #0 bytes(699..703) }, eq_token: Eq, ty: Tuple(TypeTuple { paren_token: Paren, elems: [Macro(TypeMacro { mac: Macro { path: Path { leading_colon: None, segments: [PathSegment { ident: Ident { ident: "name", span: #0 bytes(716..720) }, arguments: None }] }, bang_token: Bang, delimiter: Paren(Paren), tokens: TokenStream [Ident { ident: "name", span: #0 bytes(722..726) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(726..727) }, Punct { ch: '&', spacing: Alone, span: #0 bytes(728..729) }, Punct { ch: '\'', spacing: Joint, span: #0 bytes(729..736) }, Ident { ident: "static", span: #0 bytes(729..736) }, Ident { ident: "str", span: #0 bytes(737..740) }] } }), Comma, Macro(TypeMacro { mac: Macro { path: Path { leading_colon: None, segments: [PathSegment { ident: Ident { ident: "name", span: #0 bytes(751..755) }, arguments: None }] }, bang_token: Bang, delimiter: Paren(Paren), tokens: TokenStream [Ident { ident: "species", span: #0 bytes(757..764) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(764..765) }, Ident { ident: "Species", span: #0 bytes(766..773) }] } }), Comma, Macro(TypeMacro { mac: Macro { path: Path { leading_colon: None, segments: [PathSegment { ident: Ident { ident: "name", span: #0 bytes(784..788) }, arguments: None }] }, bang_token: Bang, delimiter: Paren(Paren), tokens: TokenStream [Ident { ident: "age", span: #0 bytes(790..793) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(793..794) }, Ident { ident: "f32", span: #0 bytes(795..798) }] } }), Comma] }) }), Comma], gt_token: Gt }) }] } })] })
--> src/lib.rs:35:1
|
35 | #[pg_extern]
| ^^^^^^^^^^^^
|
= note: this error originates in the attribute macro `pg_extern` (in Nightly builds, run with -Z macro-backtrace for more info)
error: Got unknown return type: Tuple(TypeTuple { paren_token: Paren, elems: [Macro(TypeMacro { mac: Macro { path: Path { leading_colon: None, segments: [PathSegment { ident: Ident { ident: "name", span: #0 bytes(1264..1268) }, arguments: None }] }, bang_token: Bang, delimiter: Paren(Paren), tokens: TokenStream [Ident { ident: "name", span: #0 bytes(1270..1274) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(1274..1275) }, Punct { ch: '&', spacing: Alone, span: #0 bytes(1276..1277) }, Ident { ident: "str", span: #0 bytes(1277..1280) }] } }), Comma, Macro(TypeMacro { mac: Macro { path: Path { leading_colon: None, segments: [PathSegment { ident: Ident { ident: "name", span: #0 bytes(1283..1287) }, arguments: None }] }, bang_token: Bang, delimiter: Paren(Paren), tokens: TokenStream [Ident { ident: "age", span: #0 bytes(1289..1292) }, Punct { ch: ',', spacing: Alone, span: #0 bytes(1292..1293) }, Ident { ident: "i32", span: #0 bytes(1294..1297) }] } })] })
--> src/lib.rs:55:1
|
55 | #[pg_extern]
| ^^^^^^^^^^^^
|
= note: this error originates in the attribute macro `pg_extern` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0432]: unresolved import `pgx::cstr_core`
--> src/phone_number/mod.rs:4:10
|
4 | use pgx::cstr_core::CStr;
| ^^^^^^^^^ could not find `cstr_core` in `pgx`
For more information about this error, try `rustc --explain E0432`.
error: could not compile `postgresconf` due to 4 previous errors
Metadata
Metadata
Assignees
Labels
No labels