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

Point at the call span when overflow occurs during monomorphization #73601

Merged
merged 1 commit into from
Jun 24, 2020

Commits on Jun 22, 2020

  1. Point at the call spawn when overflow occurs during monomorphization

    This improves the output for issue rust-lang#72577, but there's still more work
    to be done.
    
    Currently, an overflow error during monomorphization results in an error
    that points at the function we were unable to monomorphize. However, we
    don't point at the call that caused the monomorphization to happen. In
    the overflow occurs in a large recursive function, it may be difficult
    to determine where the issue is.
    
    This commit tracks and `Span` information during collection of
    `MonoItem`s, which is used when emitting an overflow error. `MonoItem`
    itself is unchanged, so this only affects
    `src/librustc_mir/monomorphize/collector.rs`
    Aaron1011 committed Jun 22, 2020
    Configuration menu
    Copy the full SHA
    3ed96a6 View commit details
    Browse the repository at this point in the history