Skip to content

Commit df05faf

Browse files
committed
---
yaml --- r: 60347 b: refs/heads/master c: fa45958 h: refs/heads/master i: 60345: f59f2cc 60343: 9c9eede v: v3
1 parent e853bf6 commit df05faf

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 298a72602bf4dfc3846ac01052187bc85f0f4d97
2+
refs/heads/master: fa45958ec8362c1157d8d655fc8ec95ba3f811d6
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2d28d645422c1617be58c8ca7ad9a457264ca850
55
refs/heads/try: c50a9d5b664478e533ba1d1d353213d70c8ad589

trunk/src/etc/vim/after/syntax/rust.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ syn match rustRightArrowHead contained ">" conceal cchar= 
1111
syn match rustRightArrowTail contained "-" conceal cchar=
1212
syn match rustNiceOperator "->" contains=rustRightArrowHead,rustRightArrowTail
1313

14+
syn match rustLeftRightArrowHead contained ">" conceal cchar= 
15+
syn match rustLeftRightArrowTail contained "<-" conceal cchar=
16+
syn match rustNiceOperator "<->" contains=rustLeftRightArrowHead,rustLeftRightArrowTail
17+
1418
syn match rustFatRightArrowHead contained ">" conceal cchar= 
1519
syn match rustFatRightArrowTail contained "=" conceal cchar=
1620
syn match rustNiceOperator "=>" contains=rustFatRightArrowHead,rustFatRightArrowTail

trunk/src/etc/vim/syntax/rust.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ syn keyword rustOperator as
1515

1616
syn keyword rustKeyword break copy do drop extern
1717
syn keyword rustKeyword for if impl let log
18-
syn keyword rustKeyword copy do extern
18+
syn keyword rustKeyword copy do drop extern
1919
syn keyword rustKeyword for impl let log
2020
syn keyword rustKeyword loop mod once priv pub
2121
syn keyword rustKeyword return
@@ -28,8 +28,8 @@ syn keyword rustStorage const mut ref static
2828
syn match rustIdentifier contains=rustIdentifierPrime "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
2929
syn match rustFuncName "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
3030

31-
" reserved
32-
syn keyword rustKeyword be
31+
" Reserved words
32+
"syn keyword rustKeyword m32 m64 m128 f80 f16 f128 be " These are obsolete
3333

3434
syn keyword rustType int uint float char bool u8 u16 u32 u64 f32
3535
syn keyword rustType f64 i8 i16 i32 i64 str Self

trunk/src/libcore/clone.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ by convention implementing the `Clone` trait and calling the
2323
*/
2424

2525
pub trait Clone {
26-
/// Return a deep copy of the owned object tree. Managed boxes are cloned with a shallow copy.
26+
/// Return a deep copy of the owned object tree. Types with shared ownership like managed boxes
27+
/// are cloned with a shallow copy.
2728
fn clone(&self) -> Self;
2829
}
2930

@@ -33,7 +34,7 @@ impl Clone for () {
3334
fn clone(&self) -> () { () }
3435
}
3536

36-
impl<T:Clone> Clone for ~T {
37+
impl<T: Clone> Clone for ~T {
3738
/// Return a deep copy of the owned box.
3839
#[inline(always)]
3940
fn clone(&self) -> ~T { ~(**self).clone() }

0 commit comments

Comments
 (0)