Skip to content

Commit da49381

Browse files
committed
---
yaml --- r: 63323 b: refs/heads/snap-stage3 c: ac83f4b h: refs/heads/master i: 63321: e73fcd0 63319: d2cdfe9 v: v3
1 parent fcf3140 commit da49381

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 38e05747b5cf75671b7fb7c634eba8fe56f9eb39
4+
refs/heads/snap-stage3: ac83f4b7325eea6ec82db73fb5c1ece7d8320908
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libstd/vec.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,10 @@ pub fn from_fn<T>(n_elts: uint, op: old_iter::InitOp<T>) -> ~[T] {
155155
* to the value `t`.
156156
*/
157157
pub fn from_elem<T:Copy>(n_elts: uint, t: T) -> ~[T] {
158-
// hack: manually inline from_fn for 2x plus speedup (sadly very important, from_elem is a
159-
// bottleneck in borrowck!)
158+
// FIXME (#7136): manually inline from_fn for 2x plus speedup (sadly very
159+
// important, from_elem is a bottleneck in borrowck!). Unfortunately it
160+
// still is substantially slower than using the unsafe
161+
// vec::with_capacity/ptr::set_memory for primitive types.
160162
unsafe {
161163
let mut v = with_capacity(n_elts);
162164
do as_mut_buf(v) |p, _len| {

branches/snap-stage3/src/test/run-pass/auto-encode.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
// option. This file may not be copied, modified, or distributed
1111
// except according to those terms.
1212

13-
// xfail-test #6122
14-
1513
#[forbid(deprecated_pattern)];
1614

1715
extern mod extra;

0 commit comments

Comments
 (0)