auto merge of #6960 : msullivan/rust/fix-pollution, r=brson

This commit is contained in:
bors 2013-06-05 19:55:36 -07:00
commit 4a19af1b03
1 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,7 @@ use std::uint;
pub fn main() {
let dir = tempfile::mkdtemp(&Path("."), "").unwrap();
let path = dir.with_filename("file");
let path = dir.push("file");
{
match io::file_writer(&path, [io::Create, io::Truncate]) {
@ -36,5 +36,6 @@ pub fn main() {
assert!(path.exists());
assert_eq!(path.get_size(), Some(1000));
os::remove_file(&path);
os::remove_dir(&dir);
}