diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-05-11 11:14:14 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-05-15 23:22:15 -0700 |
| commit | 2e2160b026d7a2b2d13c3a2b4d6aa073ab3ff43f (patch) | |
| tree | e4bebf36fa24fe0fe4dd6846291c59520ef1be28 /src/compiletest | |
| parent | d12a136b2247ab5cf5b32e44a890b3a871c0ce90 (diff) | |
| download | rust-2e2160b026d7a2b2d13c3a2b4d6aa073ab3ff43f.tar.gz rust-2e2160b026d7a2b2d13c3a2b4d6aa073ab3ff43f.zip | |
core: Update all tests for fmt movement
Diffstat (limited to 'src/compiletest')
| -rw-r--r-- | src/compiletest/common.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/compiletest/common.rs b/src/compiletest/common.rs index b1f1e69c5a1..695c0420e2b 100644 --- a/src/compiletest/common.rs +++ b/src/compiletest/common.rs @@ -41,15 +41,15 @@ impl FromStr for Mode { impl fmt::Show for Mode { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { let msg = match *self { - CompileFail => "compile-fail", - RunFail => "run-fail", - RunPass => "run-pass", - Pretty => "pretty", - DebugInfoGdb => "debuginfo-gdb", - DebugInfoLldb => "debuginfo-lldb", - Codegen => "codegen", + CompileFail => "compile-fail", + RunFail => "run-fail", + RunPass => "run-pass", + Pretty => "pretty", + DebugInfoGdb => "debuginfo-gdb", + DebugInfoLldb => "debuginfo-lldb", + Codegen => "codegen", }; - write!(f.buf, "{}", msg) + msg.fmt(f) } } |
