Skip to content

addr2line fails to relate an opaque type #106

Closed
@lcnr

Description

@lcnr

https://github.com/gimli-rs/addr2line/blob/ade443f2ba6ce26a5dfddde1210f41aa46d96b92/src/lib.rs#L355-L363

results in the following error when building with the new solver

error[E0284]: type annotations needed: cannot satisfy `impl core::iter::Iterator<Item = (SplitDwarfLoad<R>, impl FnOnce(Option<Arc<Dwarf<R>>>) -> Result<(), gimli::Error> + '_)> == _`
   --> src/lib.rs:358:10
    |
358 |       ) -> impl Iterator<
    |  __________^
359 | |         Item = (
360 | |             SplitDwarfLoad<R>,
361 | |             impl FnOnce(Option<Arc<gimli::Dwarf<R>>>) -> Result<(), gimli::Error> + '_,
362 | |         ),
363 | |     > {
    | |_____^ cannot satisfy `impl core::iter::Iterator<Item = (SplitDwarfLoad<R>, impl FnOnce(Option<Arc<Dwarf<R>>>) -> Result<(), gimli::Error> + '_)> == _`

This is blocking bootstrap. I have not yet looked into the underlying reasons for the ambiguity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocks-craterBlocks running a crater run for breakage w/ new solver

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions