Skip to content

Commit e7a8e96

Browse files
committed
---
yaml --- r: 128875 b: refs/heads/try c: 086a5ca h: refs/heads/master i: 128873: f500a0a 128871: e552f60 v: v3
1 parent 43983c1 commit e7a8e96

28 files changed

+631
-52
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 07d86b46a949a94223da714e35b343243e4ecce4
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a86d9ad15e339ab343a12513f9c90556f677b9ca
5-
refs/heads/try: 6dca1426bcda309c0e046aa3c31d42026c25b5d6
5+
refs/heads/try: 086a5ca7d25307325912cab2a67384867daa04c5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/etc/vim/syntax/rust.vim

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ syn keyword rustEnumVariant Ok Err
8484
syn keyword rustTrait Ascii AsciiCast OwnedAsciiCast AsciiStr
8585
syn keyword rustTrait IntoBytes
8686
syn keyword rustTrait ToCStr
87-
syn keyword rustTrait Char UnicodeChar
87+
syn keyword rustTrait Char
8888
syn keyword rustTrait Clone
8989
syn keyword rustTrait PartialEq PartialOrd Eq Ord Equiv
9090
syn keyword rustEnum Ordering
@@ -102,18 +102,18 @@ syn keyword rustTrait Box
102102
syn keyword rustTrait GenericPath Path PosixPath WindowsPath
103103
syn keyword rustTrait RawPtr
104104
syn keyword rustTrait Buffer Writer Reader Seek
105-
syn keyword rustTrait Str StrVector StrSlice
106-
syn keyword rustTrait IntoMaybeOwned StrAllocating UnicodeStrSlice
105+
syn keyword rustTrait Str StrVector StrSlice OwnedStr
106+
syn keyword rustTrait IntoMaybeOwned StrAllocating
107107
syn keyword rustTrait ToString IntoStr
108108
syn keyword rustTrait Tuple1 Tuple2 Tuple3 Tuple4
109109
syn keyword rustTrait Tuple5 Tuple6 Tuple7 Tuple8
110110
syn keyword rustTrait Tuple9 Tuple10 Tuple11 Tuple12
111111
syn keyword rustTrait CloneableVector ImmutableCloneableVector
112-
syn keyword rustTrait MutableCloneableSlice MutableOrdSlice
113-
syn keyword rustTrait ImmutableSlice MutableSlice
114-
syn keyword rustTrait ImmutablePartialEqSlice ImmutableOrdSlice
115-
syn keyword rustTrait Slice VectorVector
116-
syn keyword rustTrait MutableSliceAllocating
112+
syn keyword rustTrait MutableCloneableVector MutableOrdVector
113+
syn keyword rustTrait ImmutableVector MutableVector
114+
syn keyword rustTrait ImmutableEqVector ImmutableOrdVector
115+
syn keyword rustTrait Vector VectorVector
116+
syn keyword rustTrait MutableVectorAllocating
117117
syn keyword rustTrait String
118118
syn keyword rustTrait Vec
119119

branches/try/src/liblibc/lib.rs

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1456,13 +1456,24 @@ pub mod types {
14561456
pub Data4: [BYTE, ..8],
14571457
}
14581458

1459+
// NOTE(pcwalton, stage0): Remove after snapshot (typeck bug
1460+
// workaround).
1461+
#[cfg(stage0)]
14591462
pub struct WSAPROTOCOLCHAIN {
14601463
pub ChainLen: c_int,
14611464
pub ChainEntries: [DWORD, ..MAX_PROTOCOL_CHAIN],
14621465
}
1466+
#[cfg(not(stage0))]
1467+
pub struct WSAPROTOCOLCHAIN {
1468+
pub ChainLen: c_int,
1469+
pub ChainEntries: [DWORD, ..MAX_PROTOCOL_CHAIN as uint],
1470+
}
14631471

14641472
pub type LPWSAPROTOCOLCHAIN = *mut WSAPROTOCOLCHAIN;
14651473

1474+
// NOTE(pcwalton, stage0): Remove after snapshot (typeck bug
1475+
// workaround).
1476+
#[cfg(stage0)]
14661477
pub struct WSAPROTOCOL_INFO {
14671478
pub dwServiceFlags1: DWORD,
14681479
pub dwServiceFlags2: DWORD,
@@ -1485,6 +1496,29 @@ pub mod types {
14851496
pub dwProviderReserved: DWORD,
14861497
pub szProtocol: [u8, ..WSAPROTOCOL_LEN+1],
14871498
}
1499+
#[cfg(not(stage0))]
1500+
pub struct WSAPROTOCOL_INFO {
1501+
pub dwServiceFlags1: DWORD,
1502+
pub dwServiceFlags2: DWORD,
1503+
pub dwServiceFlags3: DWORD,
1504+
pub dwServiceFlags4: DWORD,
1505+
pub dwProviderFlags: DWORD,
1506+
pub ProviderId: GUID,
1507+
pub dwCatalogEntryId: DWORD,
1508+
pub ProtocolChain: WSAPROTOCOLCHAIN,
1509+
pub iVersion: c_int,
1510+
pub iAddressFamily: c_int,
1511+
pub iMaxSockAddr: c_int,
1512+
pub iMinSockAddr: c_int,
1513+
pub iSocketType: c_int,
1514+
pub iProtocol: c_int,
1515+
pub iProtocolMaxOffset: c_int,
1516+
pub iNetworkByteOrder: c_int,
1517+
pub iSecurityScheme: c_int,
1518+
pub dwMessageSize: DWORD,
1519+
pub dwProviderReserved: DWORD,
1520+
pub szProtocol: [u8, ..(WSAPROTOCOL_LEN as uint) + 1u],
1521+
}
14881522

14891523
pub type LPWSAPROTOCOL_INFO = *mut WSAPROTOCOL_INFO;
14901524

branches/try/src/librustc/middle/const_eval.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ use middle::def;
1717
use middle::pat_util::def_to_path;
1818
use middle::ty;
1919
use middle::typeck::astconv;
20+
use middle::typeck::check;
2021
use util::nodemap::{DefIdMap};
2122

2223
use syntax::ast::*;
@@ -274,6 +275,17 @@ impl<'a> ConstEvalVisitor<'a> {
274275
}
275276

276277
impl<'a> Visitor<()> for ConstEvalVisitor<'a> {
278+
fn visit_ty(&mut self, t: &Ty, _: ()) {
279+
match t.node {
280+
TyFixedLengthVec(_, expr) => {
281+
check::check_const_in_type(self.tcx, &*expr, ty::mk_uint());
282+
}
283+
_ => {}
284+
}
285+
286+
visit::walk_ty(self, t, ());
287+
}
288+
277289
fn visit_expr_post(&mut self, e: &Expr, _: ()) {
278290
self.classify(e);
279291
}

0 commit comments

Comments
 (0)