Skip to content

Failed Compilation #337

@iamwacko

Description

@iamwacko

Describe the bug
Nightly changed it's API so .chain() is now .sources(). This broke compilation.

To Reproduce
Steps to reproduce the behavior:

  1. cargo +nightly build --bin synth
  2. See error
|
44 |         let mut chain = original.chain().collect::<Vec<_>>();
   |                                  ^^^^^ `&(dyn StdError + 'static)` is not an iterator
   |
  ::: /home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/error.rs:31:1
   |
31 | pub trait Error: Debug + Display {
   | -------------------------------- doesn't satisfy `(dyn StdError + 'static): Iterator`
   |
   = note: the following trait bounds were not satisfied:
           `&(dyn StdError + 'static): Iterator`
           which is required by `&mut &(dyn StdError + 'static): Iterator`
           `(dyn StdError + 'static): Iterator`
           which is required by `&mut (dyn StdError + 'static): Iterator`

Expected behavior
Successful compilation.

Additional context
This can be fixed easily by changing .chain() to .sources(). I will make a PR fixing this soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingciChanges to continuous integration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions