File tree Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 298a72602bf4dfc3846ac01052187bc85f0f4d97
2
+ refs/heads/master: fa45958ec8362c1157d8d655fc8ec95ba3f811d6
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 2d28d645422c1617be58c8ca7ad9a457264ca850
5
5
refs/heads/try: c50a9d5b664478e533ba1d1d353213d70c8ad589
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ syn match rustRightArrowHead contained ">" conceal cchar=
11
11
syn match rustRightArrowTail contained " -" conceal cchar =⟶
12
12
syn match rustNiceOperator " ->" contains =rustRightArrowHead,rustRightArrowTail
13
13
14
+ syn match rustLeftRightArrowHead contained " >" conceal cchar =
15
+ syn match rustLeftRightArrowTail contained " <-" conceal cchar =⟷
16
+ syn match rustNiceOperator " <->" contains =rustLeftRightArrowHead,rustLeftRightArrowTail
17
+
14
18
syn match rustFatRightArrowHead contained " >" conceal cchar =
15
19
syn match rustFatRightArrowTail contained " =" conceal cchar =⟹
16
20
syn match rustNiceOperator " =>" contains =rustFatRightArrowHead,rustFatRightArrowTail
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ syn keyword rustOperator as
15
15
16
16
syn keyword rustKeyword break copy do drop extern
17
17
syn keyword rustKeyword for if impl let log
18
- syn keyword rustKeyword copy do extern
18
+ syn keyword rustKeyword copy do drop extern
19
19
syn keyword rustKeyword for impl let log
20
20
syn keyword rustKeyword loop mod once priv pub
21
21
syn keyword rustKeyword return
@@ -28,8 +28,8 @@ syn keyword rustStorage const mut ref static
28
28
syn match rustIdentifier contains =rustIdentifierPrime " \% ([^[:cntrl:][:space:][:punct:][:digit:]]\| _\)\% ([^[:cntrl:][:punct:][:space:]]\| _\) *" display contained
29
29
syn match rustFuncName " \% ([^[:cntrl:][:space:][:punct:][:digit:]]\| _\)\% ([^[:cntrl:][:punct:][:space:]]\| _\) *" display contained
30
30
31
- " reserved
32
- syn keyword rustKeyword be
31
+ " Reserved words
32
+ " syn keyword rustKeyword m32 m64 m128 f80 f16 f128 be " These are obsolete
33
33
34
34
syn keyword rustType int uint float char bool u8 u16 u32 u64 f32
35
35
syn keyword rustType f64 i8 i16 i32 i64 str Self
Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ by convention implementing the `Clone` trait and calling the
23
23
*/
24
24
25
25
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.
27
28
fn clone ( & self ) -> Self ;
28
29
}
29
30
@@ -33,7 +34,7 @@ impl Clone for () {
33
34
fn clone ( & self ) -> ( ) { ( ) }
34
35
}
35
36
36
- impl < T : Clone > Clone for ~T {
37
+ impl < T : Clone > Clone for ~T {
37
38
/// Return a deep copy of the owned box.
38
39
#[ inline( always) ]
39
40
fn clone ( & self ) -> ~T { ~( * * self ) . clone ( ) }
You can’t perform that action at this time.
0 commit comments