fix: use diagnostic instead of compilermessage giving rendered ansi logs during hotpatch (#4123)

* fix: use diagnostic instead of compilermessage giving rendered ansi logs during hotpatch

* no need for builder
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2025-05-19 17:10:11 +02:00
1 parent 0a18c12c32
commit b610ab372c
6 files changed
+24 -14

No files matched your search

+4 -1
View File
@@ -1,4 +1,4 @@
use cargo_metadata::CompilerMessage;
use cargo_metadata::{diagnostic::Diagnostic, CompilerMessage};
use serde::{Deserialize, Serialize};
use std::path::PathBuf;
@@ -35,6 +35,9 @@ pub enum StructuredOutput {
CargoOutput {
message: CompilerMessage,
},
RustcOutput {
message: Diagnostic,
},
BundleOutput {
bundles: Vec<PathBuf>,
},