red-quill-28140
04/13/2023, 2:28 PMshuttle_service::main macro expansion started generating an odd compiler error after I updated (from 0.9.0, I think) to 0.14.0. Here are the errors given by rustc 1.68.2:
error[E0599]: no function or associated item named `new` found for struct `Secrets` in the current scope
--> src/lib.rs:1303:50
|
1303 | let secret_store = shuttle_secrets::Secrets::new()
| ^^^ function or associated item not found in `Secrets`
|
= help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
1 | use shuttle_service::ResourceBuilder;
|
error[E0599]: no function or associated item named `new` found for struct `Postgres` in the current scope
--> src/lib.rs:1310:45
|
1310 | let pool = shuttle_shared_db::Postgres::new()
| ^^^ function or associated item not found in `Postgres`
|
= help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
|
1 | use shuttle_service::ResourceBuilder;
|
warning: unused import: `shuttle_service::Context`
--> src/lib.rs:1275:9
|
1275 | use shuttle_service::Context;
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: unused import: `shuttle_service::ResourceBuilder`
--> src/lib.rs:1276:9
|
1276 | use shuttle_service::ResourceBuilder;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The odd thing is that the suggested use directives are present in the macro expansion, and if I add them manually I get warnings about useless use statements instead. Has anyone seen an issue like this before?agreeable-painting-48846
04/13/2023, 2:29 PMred-quill-28140
04/13/2023, 2:29 PMred-quill-28140
04/13/2023, 2:29 PMagreeable-painting-48846
04/13/2023, 2:30 PMred-quill-28140
04/13/2023, 2:30 PMred-quill-28140
04/13/2023, 2:30 PMagreeable-painting-48846
04/13/2023, 2:32 PMred-quill-28140
04/13/2023, 3:38 PMenough-oil-62271
04/13/2023, 4:02 PMred-quill-28140
04/13/2023, 4:43 PMred-quill-28140
04/13/2023, 4:44 PMbot-poise feature to the shuttle_poise crate, and cargo was being confusedred-quill-28140
04/13/2023, 4:44 PM