From: Andy Russell Date: Wed, 16 Nov 2016 21:04:31 +0000 (-0500) Subject: show warnings for all members of the workspace X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~11^2~91^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=81e5c764a1b962c463efd2c1feb17d4090b296f1;p=cargo.git show warnings for all members of the workspace --- diff --git a/src/cargo/ops/cargo_compile.rs b/src/cargo/ops/cargo_compile.rs index e08631593..a0e70e9ba 100644 --- a/src/cargo/ops/cargo_compile.rs +++ b/src/cargo/ops/cargo_compile.rs @@ -98,8 +98,8 @@ pub enum CompileFilter<'a> { pub fn compile<'a>(ws: &Workspace<'a>, options: &CompileOptions<'a>) -> CargoResult> { - if let Some(root_package) = ws.current_opt() { - for key in root_package.manifest().warnings().iter() { + for member in ws.members() { + for key in member.manifest().warnings().iter() { options.config.shell().warn(key)? } }