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 73e848e commit cb96092Copy full SHA for cb96092
src/exercise.rs
@@ -126,6 +126,12 @@ path = "{}.rs""#,
126
.expect("Failed to run 'compile' command.");
127
128
if cmd.status.success() {
129
+ // Because compiler warnings go to the standard error, we have to inspect the
130
+ // standard error of the child process responsible for compiling the code.
131
+ if !cmd.stderr.is_empty() {
132
+ println!("{}", String::from_utf8_lossy(&cmd.stderr).to_string());
133
+ //fs::write!(format!("[DEBUG] {}\n", String::from_utf8_lossy(&cmd.stderr).to_string()));
134
+ }
135
Ok(CompiledExercise {
136
exercise: &self,
137
_handle: FileHandle,
0 commit comments