From 254339fd3974417999147ac6c4f23c80e7ad8ab4 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Tue, 23 Jul 2013 23:41:33 -0400 Subject: [PATCH] fix fmt! usage --- src/compiletest/runtest.rs | 2 +- src/librustpkg/path_util.rs | 2 +- src/test/bench/shootout-binarytrees.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compiletest/runtest.rs b/src/compiletest/runtest.rs index a2f36c104a0..7cd73c82530 100644 --- a/src/compiletest/runtest.rs +++ b/src/compiletest/runtest.rs @@ -292,7 +292,7 @@ fn debugger() -> ~str { ~"gdb" } } } if i != num_check_lines { - fatal_ProcRes(fmt!("line not found in debugger output: %s" + fatal_ProcRes(fmt!("line not found in debugger output: %s", check_lines[i]), &ProcRes); } } diff --git a/src/librustpkg/path_util.rs b/src/librustpkg/path_util.rs index ed5b1118a9c..700dbea8182 100644 --- a/src/librustpkg/path_util.rs +++ b/src/librustpkg/path_util.rs @@ -400,7 +400,7 @@ pub fn mk_output_path(what: OutputType, where: Target, Test => "test", Bench => "bench", _ => "" - } + }, os::EXE_SUFFIX)) }; if !output_path.is_absolute() { diff --git a/src/test/bench/shootout-binarytrees.rs b/src/test/bench/shootout-binarytrees.rs index 2f63c302d53..596a5b5422a 100644 --- a/src/test/bench/shootout-binarytrees.rs +++ b/src/test/bench/shootout-binarytrees.rs @@ -80,7 +80,7 @@ fn main() { i += 1; } printfln!("%d\t trees of depth %d\t check: %d", - iterations * 2, depth, chk)); + iterations * 2, depth, chk); depth += 2; } printfln!("long lived tree of depth %d\t check: %d", -- 2.44.0