SparrowLii
89fd6ae458
correct span, add help message and add UI test when query depth overflows
2022-09-15 16:05:44 +08:00
SparrowLii
44506f38e0
add note for layout_of
when query depth overflows
2022-09-15 16:05:00 +08:00
Joshua Nelson
4856affd90
Make HandleCycleError
an enum instead of a macro-generated closure
...
- Add a `HandleCycleError` enum to rustc_query_system, along with a `handle_cycle_error` function
- Move `Value` to rustc_query_system, so `handle_cycle_error` can use it
- Move the `Value` impls from rustc_query_impl to rustc_middle. This is necessary due to orphan rules.
2022-09-06 19:26:08 -05:00
Li Yuanheng
7ce59ebf49
SessionDiagnostic for QueryOverflow error
2022-08-31 19:43:23 +08:00
Yuanheng Li
ac638c1f5f
use derive proc macro to impl SessionDiagnostic
...
fixes `SessionSubdiagnostic` to accept multiple attributes
emitting list of fluent message remains unresolved
2022-08-31 19:43:12 +08:00
Li Yuanheng
d7e07c0b6b
link related issue to FIXME
...
Co-authored-by: David Wood <agile.lion3441@fuligin.ink>
2022-08-31 19:33:51 +08:00
Yuanheng Li
b8075e4550
migrate rustc_query_system to use SessionDiagnostic
...
with manual impl SessionDiagnostic
2022-08-31 19:33:51 +08:00