Skip to content

Removing copies causing segfaults #5562

Closed
@alexcrichton

Description

@alexcrichton

When transitioning from oldmap::HashMap to LinearMap in #5523, I ran into a number of spots which caused segfaults when compiling some time between stage1 and stage2.

Each segfault could be fixed with a copy, although the copy isn't necessary in most cases. This mostly showed up with types of the form &*T, and the copy ended up yielding a *T type.

I wasn't able to track it down much further, but there are a number of spots throughout the compiler marked with a FIXME for this issue.

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

    Issue actions