diag: Diag / Diags の
alloc/diag/errorで定義 したDiag/Diagsを人間 が読 める文字列 へ変換 します。- std target では
標準 出力 へ流 す helper も提供 します。
重大度 ・error kind・message・span・notes・help を順番 に連結 して組 み立 てます。
- ここは stringify/rendering の
暫定 helper です。 - reboot
途中 ではStringify/Debugtrait へ整理 する予定 ですが、現時点 ではこのモジュールで共通 表示 を担 います。
文字列 連結 ぶんだけ O(n) です。
kind_str: Diag の kind を
span_to_string: Span を file:start-end へ
diag_to_string: Diag を
diags_to_string: Diags を