librustc: Hook borrow check loan checking up to the moves-based-on-type infrastructure. rs=helps-unbreak-the-build
This commit is contained in:
parent
a05ba09d90
commit
1282fc8074
18 changed files with 143 additions and 87 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue