Skip to content

Commit fa28994

Browse files
committed
---
yaml --- r: 129491 b: refs/heads/snap-stage3 c: 119f8b4 h: refs/heads/master i: 129489: 74cb765 129487: f5b8a03 v: v3
1 parent c8d67dd commit fa28994

File tree

11 files changed

+24
-88
lines changed

11 files changed

+24
-88
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: 566b470e138e929e8a93d613372db1ba177c494f
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: a2842407839f0a98283394d03c794d9bd5372c89
4+
refs/heads/snap-stage3: 119f8b46948643176f07055be8b81fc48d957614
55
refs/heads/try: 80b45ddbd351f0a4a939c3a3c4e20b4defec4b35
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ then
635635
LLVM_VERSION=$($LLVM_CONFIG --version)
636636

637637
case $LLVM_VERSION in
638-
(3.[2-6]*)
638+
(3.[2-5]*)
639639
msg "found ok version of LLVM: $LLVM_VERSION"
640640
;;
641641
(*)

branches/snap-stage3/src/libcollections/priority_queue.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -529,9 +529,10 @@ impl<'a, T> Iterator<&'a T> for Items<'a, T> {
529529
}
530530

531531
impl<T: Ord> FromIterator<T> for PriorityQueue<T> {
532-
fn from_iter<Iter: Iterator<T>>(mut iter: Iter) -> PriorityQueue<T> {
533-
let vec: Vec<T> = iter.collect();
534-
PriorityQueue::from_vec(vec)
532+
fn from_iter<Iter: Iterator<T>>(iter: Iter) -> PriorityQueue<T> {
533+
let mut q = PriorityQueue::new();
534+
q.extend(iter);
535+
q
535536
}
536537
}
537538

branches/snap-stage3/src/liblibc/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,8 +1357,16 @@ pub mod types {
13571357
pub mod c99 {
13581358
pub type c_longlong = i64;
13591359
pub type c_ulonglong = u64;
1360+
1361+
#[cfg(target_arch = "x86")]
13601362
pub type intptr_t = i32;
1363+
#[cfg(target_arch = "x86_64")]
1364+
pub type intptr_t = i64;
1365+
1366+
#[cfg(target_arch = "x86")]
13611367
pub type uintptr_t = u32;
1368+
#[cfg(target_arch = "x86_64")]
1369+
pub type uintptr_t = u64;
13621370
}
13631371

13641372
pub mod posix88 {

branches/snap-stage3/src/librustc/middle/borrowck/gather_loans/restrictions.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,18 @@ impl<'a> RestrictionsContext<'a> {
7070
mc::cat_arg(local_id) => {
7171
// R-Variable, locally declared
7272
let lp = Rc::new(LpVar(local_id));
73-
SafeIf(lp.clone(), vec![lp])
73+
SafeIf(lp.clone(), vec!(lp))
7474
}
7575

7676
mc::cat_upvar(upvar_id, _) => {
7777
// R-Variable, captured into closure
7878
let lp = Rc::new(LpUpvar(upvar_id));
79-
SafeIf(lp.clone(), vec![lp])
79+
SafeIf(lp.clone(), vec!(lp))
8080
}
8181

82-
mc::cat_copied_upvar(mc::CopiedUpvar { upvar_id, .. }) => {
83-
// R-Variable, copied/moved into closure
84-
let lp = Rc::new(LpVar(upvar_id));
85-
SafeIf(lp.clone(), vec![lp])
82+
mc::cat_copied_upvar(..) => {
83+
// FIXME(#2152) allow mutation of upvars
84+
Safe
8685
}
8786

8887
mc::cat_downcast(cmt_base) => {

branches/snap-stage3/src/librustrt/unwind.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,11 +402,8 @@ pub mod eabi {
402402
use libunwind as uw;
403403
use libc::{c_void, c_int};
404404

405-
#[repr(C)]
406405
struct EXCEPTION_RECORD;
407-
#[repr(C)]
408406
struct CONTEXT;
409-
#[repr(C)]
410407
struct DISPATCHER_CONTEXT;
411408

412409
#[repr(C)]

branches/snap-stage3/src/libsyntax/parse/mod.rs

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -412,21 +412,14 @@ pub fn str_lit(lit: &str) -> String {
412412
loop {
413413
match chars.next() {
414414
Some((i, c)) => {
415+
let em = error(i);
415416
match c {
416417
'\\' => {
417-
let ch = chars.peek().unwrap_or_else(|| {
418-
fail!("{}", error(i).as_slice())
419-
}).val1();
420-
421-
if ch == '\n' {
418+
if chars.peek().expect(em.as_slice()).val1() == '\n' {
422419
eat(&mut chars);
423-
} else if ch == '\r' {
420+
} else if chars.peek().expect(em.as_slice()).val1() == '\r' {
424421
chars.next();
425-
let ch = chars.peek().unwrap_or_else(|| {
426-
fail!("{}", error(i).as_slice())
427-
}).val1();
428-
429-
if ch != '\n' {
422+
if chars.peek().expect(em.as_slice()).val1() != '\n' {
430423
fail!("lexer accepted bare CR");
431424
}
432425
eat(&mut chars);
@@ -440,11 +433,7 @@ pub fn str_lit(lit: &str) -> String {
440433
}
441434
},
442435
'\r' => {
443-
let ch = chars.peek().unwrap_or_else(|| {
444-
fail!("{}", error(i).as_slice())
445-
}).val1();
446-
447-
if ch != '\n' {
436+
if chars.peek().expect(em.as_slice()).val1() != '\n' {
448437
fail!("lexer accepted bare CR");
449438
}
450439
chars.next();

branches/snap-stage3/src/test/compile-fail/cannot-mutate-captured-non-mut-var.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,4 @@ fn main() {
1212
let x = 1i;
1313
proc() { x = 2; };
1414
//~^ ERROR: cannot assign to immutable captured outer variable in a proc `x`
15-
16-
let s = std::io::stdin();
17-
proc() { s.lines(); };
18-
//~^ ERROR: cannot borrow immutable captured outer variable in a proc `s` as mutable
1915
}

branches/snap-stage3/src/test/run-pass/issue-16671.rs

Lines changed: 0 additions & 24 deletions
This file was deleted.

branches/snap-stage3/src/test/run-pass/slowparse-bstring.rs

Lines changed: 0 additions & 15 deletions
This file was deleted.

branches/snap-stage3/src/test/run-pass/slowparse-string.rs

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)