Skip to content

Instantly share code, notes, and snippets.

@tmandry
Created October 6, 2019 02:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmandry/ac59195bb712fbb515f5f979fbeb67a4 to your computer and use it in GitHub Desktop.
Save tmandry/ac59195bb712fbb515f5f979fbeb67a4 to your computer and use it in GitHub Desktop.
cycle error with RUSTC_LOG=debug
error[E0391]: cycle detected when processing `account::<impl at ../../src/identity/bin/account_handler/src/account.rs:72:1: 371:2>::new::{{opaque}}#0`
--> ../../src/identity/bin/account_handler/src/account.rs:84:10
|
84 | ) -> Result<Account, AccountManagerError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: ...which requires processing `account::<impl at ../../src/identity/bin/account_handler/src/account.rs:72:1: 371:2>::new::{{opaque}}#0`...
--> ../../src/identity/bin/account_handler/src/account.rs:84:10
|
84 | ) -> Result<Account, AccountManagerError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: ...which requires processing `account::<impl at ../../src/identity/bin/account_handler/src/account.rs:72:1: 371:2>::new::{{opaque}}#0`...
--> ../../src/identity/bin/account_handler/src/account.rs:84:10
|
84 | ) -> Result<Account, AccountManagerError> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: ...which again requires processing `account::<impl at ../../src/identity/bin/account_handler/src/account.rs:72:1: 371:2>::new::{{opaque}}#0`, completing the cycle
note: cycle used when processing `account::<impl at ../../src/identity/bin/account_handler/src/account.rs:72:1: 371:2>::new`
--> ../../src/identity/bin/account_handler/src/account.rs:78:5
|
78 | / async fn new(
79 | | account_id: LocalAccountId,
80 | | persona_id: LocalPersonaId,
81 | | lifetime: AccountLifetime,
... |
122 | | })
123 | | }
| |_____^
error: aborting due to previous error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment