rollup merge of #20061: aturon/stab-2-vec-slice
Conflicts: src/libcollections/slice.rs src/libcollections/vec.rs src/libstd/sys/windows/os.rs
This commit is contained in:
commit
67d13883f8
80 changed files with 2525 additions and 2524 deletions
|
|
@ -65,7 +65,7 @@ fn shift_push() {
|
|||
let mut v2 = Vec::new();
|
||||
|
||||
while v1.len() > 0 {
|
||||
v2.push(v1.remove(0).unwrap());
|
||||
v2.push(v1.remove(0));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -181,7 +181,7 @@ fn reverse_complement(seq: &mut [u8], tables: &Tables) {
|
|||
unsafe {
|
||||
copy_memory(seq.as_mut_ptr().offset((i - off + 1) as int),
|
||||
seq.as_ptr().offset((i - off) as int), off);
|
||||
*seq.unsafe_mut(i - off) = b'\n';
|
||||
*seq.get_unchecked_mut(i - off) = b'\n';
|
||||
}
|
||||
i += LINE_LEN + 1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@
|
|||
// except according to those terms.
|
||||
|
||||
use std::slice::Chunks;
|
||||
use std::slice::MutChunks;
|
||||
use std::slice::ChunksMut;
|
||||
|
||||
fn dft_iter<'a, T>(arg1: Chunks<'a,T>, arg2: MutChunks<'a,T>)
|
||||
fn dft_iter<'a, T>(arg1: Chunks<'a,T>, arg2: ChunksMut<'a,T>)
|
||||
{
|
||||
for
|
||||
&something
|
||||
|
|
|
|||
|
|
@ -15,4 +15,3 @@ struct Iter;
|
|||
|
||||
fn main() {
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue