Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addr2line fails to relate an opaque type #106

Closed
lcnr opened this issue Apr 25, 2024 · 2 comments
Closed

addr2line fails to relate an opaque type #106

lcnr opened this issue Apr 25, 2024 · 2 comments
Labels
blocks-crater Blocks running a crater run for breakage w/ new solver

Comments

@lcnr
Copy link
Contributor

lcnr commented Apr 25, 2024

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.

@lcnr lcnr added the blocks-crater Blocks running a crater run for breakage w/ new solver label Apr 25, 2024
@lcnr
Copy link
Contributor Author

lcnr commented May 14, 2024

This is caused by well-formedness checking trying to normalize types in the function signature while computing the implied bounds. draft fix in rust-lang/rust#124598

@lcnr
Copy link
Contributor Author

lcnr commented Dec 5, 2024

fixed by rust-lang/rust#133501

@lcnr lcnr closed this as completed Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocks-crater Blocks running a crater run for breakage w/ new solver
Projects
None yet
Development

No branches or pull requests

1 participant