From f2eb9959e923562b0cd79e8c081c4dafc56f138e Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 20 May 2016 17:19:49 +0300 Subject: [PATCH] fix cargo_compile_path_deps --- tests/test_cargo_compile_path_deps.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_cargo_compile_path_deps.rs b/tests/test_cargo_compile_path_deps.rs index 0ed5e15ba5c..896ed56caaa 100644 --- a/tests/test_cargo_compile_path_deps.rs +++ b/tests/test_cargo_compile_path_deps.rs @@ -468,7 +468,7 @@ test!(nested_deps_recompile { name = "bar" "#) - .file("src/bar/src/bar.rs", "pub fn gimme() {}"); + .file("src/bar/src/bar.rs", "pub fn gimme() -> i32 { 92 }"); let bar = p.url(); assert_that(p.cargo_process("build"), @@ -722,7 +722,7 @@ test!(dev_deps_no_rebuild_lib { "#) .file("src/lib.rs", r#" #[cfg(test)] extern crate bar; - #[cfg(not(test))] fn foo() { env!("FOO"); } + #[cfg(not(test))] pub fn foo() { env!("FOO"); } "#) .file("bar/Cargo.toml", r#" [package]