1
Fork 0

librustc: Hook borrow check loan checking up to the moves-based-on-type infrastructure. rs=helps-unbreak-the-build

This commit is contained in:
Patrick Walton 2012-12-05 15:06:54 -08:00
parent a05ba09d90
commit 1282fc8074
18 changed files with 143 additions and 87 deletions

View file

@ -502,7 +502,7 @@ impl PosixPath : GenericPath {
let mut v = copy self.components;
let mut ss = str::split_nonempty(s, |c| windows::is_sep(c as u8));
unsafe { v.push_all_move(move ss); }
PosixPath { components: move v, ..self }
PosixPath { components: move v, ..copy self }
}
pure fn pop() -> PosixPath {
@ -707,7 +707,7 @@ impl WindowsPath : GenericPath {
let mut v = copy self.components;
let mut ss = str::split_nonempty(s, |c| windows::is_sep(c as u8));
unsafe { v.push_all_move(move ss); }
return WindowsPath { components: move v, ..self }
return WindowsPath { components: move v, ..copy self }
}
pure fn pop() -> WindowsPath {