SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

0 0 117 JavaScript

[rust-compiler] Fix CompilerDiagnostic::todo() to produce ErrorDetail variant

Removed the flat-loc serialization hack from log_error, compiler_error_to_info,
and log_errors_as_events. Instead fixed the root cause: the From<CompilerDiagnostic>
for CompilerError impl now converts Todo-category diagnostics into
CompilerErrorOrDiagnostic::ErrorDetail (matching TS's CompilerError.throwTodo()
which creates CompilerErrorDetail with loc directly). Invariant-category diagnostics
remain as CompilerErrorOrDiagnostic::Diagnostic with sub-details. 1723/1723 passing.
J
Joe Savona committed
bb970d099bb494a521aa08788a4f7c18859ff014
Parent: 2d31511