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.
2 parents 75dd5b8 + 649a0f6 commit 7b8c8ffCopy full SHA for 7b8c8ff
lrpar/src/lib/ctbuilder.rs
@@ -618,8 +618,9 @@ where
618
let ws = indent(" ", &yacc_diag.format_warning(w).to_string());
619
// Assume if this variable is set we are running under cargo.
620
if std::env::var("OUT_DIR").is_ok() && self.show_warnings {
621
- println!("cargo:warning={}", ws_loc);
622
- println!("cargo:warning={}", ws);
+ for line in ws_loc.lines().chain(ws.lines()) {
+ println!("cargo:warning={}", line);
623
+ }
624
} else if self.show_warnings {
625
eprintln!("{}", ws_loc);
626
eprintln!("{WARNING} {}", ws);
0 commit comments