about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2020-06-21 22:32:35 -0400
committerAaron Hill <aa1ronham@gmail.com>2020-06-22 14:35:42 -0400
commit3ed96a6d638f8dc8aa081ca1ad82e61caa8930ca (patch)
treec9e61e21031dd995975cb1fe073ab7bf0cc8ba01 /src/test/codegen/src-hash-algorithm
parent1a4e2b6f9c75a0e21722c88a0e3b610d6ffc3ae3 (diff)
downloadrust-3ed96a6d638f8dc8aa081ca1ad82e61caa8930ca.tar.gz
rust-3ed96a6d638f8dc8aa081ca1ad82e61caa8930ca.zip
Point at the call spawn when overflow occurs during monomorphization
This improves the output for issue #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`
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions