File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed
crates/cargo-codspeed/src Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,17 @@ impl BuildOptions<'_> {
43
43
44
44
let mut built_benches = Vec :: new ( ) ;
45
45
for message in Message :: parse_stream ( reader) {
46
- if let Message :: CompilerArtifact ( artifact) =
47
- message. expect ( "Failed to parse compiler message" )
48
- {
49
- if artifact. target . is_kind ( TargetKind :: Bench ) {
46
+ match message. expect ( "Failed to parse message" ) {
47
+ // Those messages will include build errors and warnings even if stderr also contain some of them
48
+ Message :: CompilerMessage ( msg) => {
49
+ println ! ( "{}" , & msg. message) ;
50
+ }
51
+ Message :: TextLine ( line) => {
52
+ println ! ( "{}" , line) ;
53
+ }
54
+ Message :: CompilerArtifact ( artifact)
55
+ if artifact. target . is_kind ( TargetKind :: Bench ) =>
56
+ {
50
57
let package = workspace_packages
51
58
. iter ( )
52
59
. find ( |p| p. id == artifact. package_id )
@@ -71,6 +78,7 @@ impl BuildOptions<'_> {
71
78
} ) ;
72
79
}
73
80
}
81
+ _ => { }
74
82
}
75
83
}
76
84
You can’t perform that action at this time.
0 commit comments