We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca73425 commit 8b17afbCopy full SHA for 8b17afb
src/build/parse.rs
@@ -335,8 +335,9 @@ fn generate_ast(
335
.output()
336
.expect("Error converting .res to .ast"),
337
) {
338
- let stderr = std::str::from_utf8(&res_to_ast.stderr).expect("Expect StdErr to be non-null");
339
- if helpers::contains_ascii_characters(stderr) {
+ let stderr = String::from_utf8_lossy(&res_to_ast.stderr).to_string();
+
340
+ if helpers::contains_ascii_characters(&stderr) {
341
if res_to_ast.status.success() {
342
Ok((ast_path, Some(stderr.to_string())))
343
} else {
0 commit comments