From 79d163e1c461b7e530e71bbf6502b9b9d7d98652 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sat, 14 Mar 2015 11:28:31 -0700 Subject: [PATCH] Update to rust master --- src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 160e79b..51508da 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -43,7 +43,7 @@ //! ``` #![doc(html_root_url = "http://alexcrichton.com/gcc-rs")] -#![feature(io, path)] +#![feature(io, std_misc)] #![cfg_attr(test, deny(warnings))] use std::env; @@ -110,7 +110,7 @@ impl Config { } /// Add a directory to the `-I` or include path for headers - pub fn include(&mut self, dir: &P) -> &mut Config { + pub fn include(&mut self, dir: P) -> &mut Config { self.include_directories.push(dir.as_path().to_path_buf()); self } @@ -122,7 +122,7 @@ impl Config { } /// Add an arbitrary object file to link in - pub fn object(&mut self, obj: &P) -> &mut Config { + pub fn object(&mut self, obj: P) -> &mut Config { self.objects.push(obj.as_path().to_path_buf()); self } @@ -134,7 +134,7 @@ impl Config { } /// Add a file which will be compiled - pub fn file(&mut self, p: &P) -> &mut Config { + pub fn file(&mut self, p: P) -> &mut Config { self.files.push(p.as_path().to_path_buf()); self }