Skip to content

Report a CargoWorkspace event #1331

Report a CargoWorkspace event

Report a CargoWorkspace event #1331

Triggered via pull request October 19, 2024 00:26
Status Failure
Total duration 1m 50s
Artifacts

coverage.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors
no function or associated item named `from_iter` found for struct `context::WorkspacePackages` in the current scope: src/writer/write_msrv.rs#L122
error[E0599]: no function or associated item named `from_iter` found for struct `context::WorkspacePackages` in the current scope --> src/writer/write_msrv.rs:122:52 | 122 | workspace_packages: WorkspacePackages::from_iter([]), | ^^^^^^^^^ function or associated item not found in `WorkspacePackages` | ::: src/context.rs:350:1 | 350 | pub struct WorkspacePackages { | ---------------------------- function or associated item `from_iter` not found for this struct | note: if you're trying to build a new `context::WorkspacePackages`, consider using `context::WorkspacePackages::from_vec` which returns `context::WorkspacePackages` --> src/context.rs:355:5 | 355 | pub fn from_vec(selected: Vec<cargo_metadata::Package>) -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: items from traits can only be used if the trait is implemented and in scope = note: the following trait defines an item `from_iter`, perhaps you need to implement it: candidate #1: `std::iter::FromIterator` help: there is an associated function `from_vec` with a similar name | 122 | workspace_packages: WorkspacePackages::from_vec([]), | ~~~~~~~~
no function or associated item named `from_iter` found for struct `context::WorkspacePackages` in the current scope: src/writer/write_msrv.rs#L90
error[E0599]: no function or associated item named `from_iter` found for struct `context::WorkspacePackages` in the current scope --> src/writer/write_msrv.rs:90:52 | 90 | workspace_packages: WorkspacePackages::from_iter([]), | ^^^^^^^^^ function or associated item not found in `WorkspacePackages` | ::: src/context.rs:350:1 | 350 | pub struct WorkspacePackages { | ---------------------------- function or associated item `from_iter` not found for this struct | note: if you're trying to build a new `context::WorkspacePackages`, consider using `context::WorkspacePackages::from_vec` which returns `context::WorkspacePackages` --> src/context.rs:355:5 | 355 | pub fn from_vec(selected: Vec<cargo_metadata::Package>) -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: items from traits can only be used if the trait is implemented and in scope = note: the following trait defines an item `from_iter`, perhaps you need to implement it: candidate #1: `std::iter::FromIterator` help: there is an associated function `from_vec` with a similar name | 90 | workspace_packages: WorkspacePackages::from_vec([]), | ~~~~~~~~
no function or associated item named `from_iter` found for struct `context::WorkspacePackages` in the current scope: src/writer/write_msrv.rs#L55
error[E0599]: no function or associated item named `from_iter` found for struct `context::WorkspacePackages` in the current scope --> src/writer/write_msrv.rs:55:52 | 55 | workspace_packages: WorkspacePackages::from_iter([]), | ^^^^^^^^^ function or associated item not found in `WorkspacePackages` | ::: src/context.rs:350:1 | 350 | pub struct WorkspacePackages { | ---------------------------- function or associated item `from_iter` not found for this struct | note: if you're trying to build a new `context::WorkspacePackages`, consider using `context::WorkspacePackages::from_vec` which returns `context::WorkspacePackages` --> src/context.rs:355:5 | 355 | pub fn from_vec(selected: Vec<cargo_metadata::Package>) -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: items from traits can only be used if the trait is implemented and in scope = note: the following trait defines an item `from_iter`, perhaps you need to implement it: candidate #1: `std::iter::FromIterator` help: there is an associated function `from_vec` with a similar name | 55 | workspace_packages: WorkspacePackages::from_vec([]), | ~~~~~~~~
no function or associated item named `from_iter` found for struct `context::WorkspacePackages` in the current scope: src/sub_command/find/tests.rs#L268
error[E0599]: no function or associated item named `from_iter` found for struct `context::WorkspacePackages` in the current scope --> src/sub_command/find/tests.rs:268:52 | 268 | workspace_packages: WorkspacePackages::from_iter([]), | ^^^^^^^^^ function or associated item not found in `WorkspacePackages` | ::: src/context.rs:350:1 | 350 | pub struct WorkspacePackages { | ---------------------------- function or associated item `from_iter` not found for this struct | note: if you're trying to build a new `context::WorkspacePackages`, consider using `context::WorkspacePackages::from_vec` which returns `context::WorkspacePackages` --> src/context.rs:355:5 | 355 | pub fn from_vec(selected: Vec<cargo_metadata::Package>) -> Self { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: items from traits can only be used if the trait is implemented and in scope = note: the following trait defines an item `from_iter`, perhaps you need to implement it: candidate #1: `std::iter::FromIterator` help: there is an associated function `from_vec` with a similar name | 268 | workspace_packages: WorkspacePackages::from_vec([]), | ~~~~~~~~
coverage
Process completed with exit code 1.