rust/src/test/ui/infinite
Aaron Hill 3ed96a6d63
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`
2020-06-22 14:35:42 -04:00
..
infinite-autoderef.rs Remove licenses 2018-12-25 21:08:33 -07:00
infinite-autoderef.stderr #![recursion_limit = "X"]: note current crate name. 2020-02-05 03:24:43 +01:00
infinite-instantiation.rs Point at the call spawn when overflow occurs during monomorphization 2020-06-22 14:35:42 -04:00
infinite-instantiation.stderr Point at the call spawn when overflow occurs during monomorphization 2020-06-22 14:35:42 -04:00
infinite-macro-expansion.rs rustc_span: move pretty syntax from macro_backtrace to ExpnKind::descr. 2020-01-26 17:18:55 +02:00
infinite-macro-expansion.stderr rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. 2020-02-06 21:46:38 +02:00
infinite-recursion-const-fn.rs Add memoization for const function evaluations 2019-11-27 12:01:04 +00:00
infinite-recursion-const-fn.stderr run const_eval_raw with root_span 2020-06-13 13:55:01 +02:00
infinite-tag-type-recursion.rs Add descriptions for all queries 2020-05-31 20:15:32 +01:00
infinite-tag-type-recursion.stderr review comments: only suggest one substitution 2020-06-10 14:09:51 -07:00
infinite-vec-type-recursion.rs Remove licenses 2018-12-25 21:08:33 -07:00
infinite-vec-type-recursion.stderr Add descriptions for all queries 2020-05-31 20:15:32 +01:00