Skip to content

error monomorphizing rather complex use of ifaces #2283

@nikomatsakis

Description

@nikomatsakis
Contributor

If you look at the iter branch in the nikomatsakis/rust repo, you will find that it fails in stage0. I debugged this a bit by building a vanilla compiler in another repoistory and managed to trace it as far as a failure in make_mono_id() because the call to map2() that is processing bounds and substs receives a bounds vec of length 1 and a substs vec of length 2. This seems to occur with the call to vec::flatmap() that occurs in librustsyntax processing the attributes. I tried to narrow down the test to a smaller test file but was unable to find anything that reproduced the error other than the full rustc.

@marijnh if you wouldn't mind taking a look and let me know if something jumps out at you, I would appreciate it.

Activity

ghost assigned on Apr 25, 2012
catamorphism

catamorphism commented on Apr 25, 2012

@catamorphism
Contributor

The symptoms look a lot like #2185 -- you have @marijnh 's fix for that, right?

marijnh

marijnh commented on Apr 25, 2012

@marijnh
Contributor

Ugh. It turns out that the last snapshot, although registered after my fix, is actually a snapshot of a tree that's quite a bit older. I've verified that when I do a local snapshot, this problem goes away. So this is a duplicate of #2185, as Tim pointed out. I'll start a new snapshot.

added a commit that references this issue on Sep 22, 2022
added a commit that references this issue on Mar 14, 2025
3d9bf08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @marijnh@nikomatsakis@catamorphism

        Issue actions

          error monomorphizing rather complex use of ifaces · Issue #2283 · rust-lang/rust