Skip to content

Commit 73a3032

Browse files
committed
---
yaml --- r: 15721 b: refs/heads/try c: 55de232 h: refs/heads/master i: 15719: 514877b v: v3
1 parent 4994d2a commit 73a3032

File tree

8 files changed

+14
-45
lines changed

8 files changed

+14
-45
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: f1129635ee5fc595c3638626884e49e6dd9356d9
5+
refs/heads/try: 55de232426b3861d1cc2385888a6104063318dce
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,17 @@ if !exists("main_syntax")
1515
endif
1616

1717
syn keyword rustKeyword alt as assert be bind break
18-
syn keyword rustKeyword check claim cont const copy do else enum export fail
19-
syn keyword rustKeyword fn for if iface impl import in inline lambda let log
18+
syn keyword rustKeyword check claim cont const copy do else export fail
19+
syn keyword rustKeyword for if impl import in inline lambda let log
2020
syn keyword rustKeyword loop mod mut mutable native note of prove pure
21-
syn keyword rustKeyword resource ret self syntax to type unchecked
21+
syn keyword rustKeyword ret self syntax to unchecked
2222
syn keyword rustKeyword unsafe use while with
23+
" FIXME: Scoped impl's name is also fallen in this category
24+
syn keyword rustKeyword mod iface resource class enum type nextgroup=rustIdentifier skipwhite
25+
syn keyword rustKeyword fn nextgroup=rustFuncName skipwhite
26+
27+
syn match rustIdentifier "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
28+
syn match rustFuncName "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
2329

2430
" Reserved words
2531
syn keyword rustKeyword m32 m64 m128 f80 f16 f128 class trait
@@ -59,6 +65,8 @@ hi def link rustNumber Number
5965
hi def link rustBoolean Boolean
6066
hi def link rustFloat Float
6167
hi def link rustKeyword Keyword
68+
hi def link rustIdentifier Identifier
69+
hi def link rustFuncName Function
6270
hi def link rustComment Comment
6371
hi def link rustMacro Macro
6472
hi def link rustType Type

branches/try/src/libcore/ptr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ unsafe fn memmove<T>(dst: *T, src: *T, count: uint) {
104104
#[doc = "Extension methods for pointers"]
105105
impl extensions<T> for *T {
106106
#[doc = "Returns true if the pointer is equal to the null pointer."]
107-
pure fn is_null() -> bool { is_null(self) }
107+
pure fn is_null<T>() -> bool { is_null(self) }
108108

109109
#[doc = "Returns true if the pointer is not equal to the null pointer."]
110-
pure fn is_not_null() -> bool { is_not_null(self) }
110+
pure fn is_not_null<T>() -> bool { is_not_null(self) }
111111
}
112112

113113
#[test]

branches/try/src/rustc/middle/typeck.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2738,25 +2738,6 @@ impl methods for lookup {
27382738
self.tcx().sess.span_err(
27392739
self.expr.span,
27402740
"multiple applicable methods in scope");
2741-
2742-
// I would like to print out how each impl was imported,
2743-
// but I cannot for the life of me figure out how to
2744-
// annotate resolve to preserve this information.
2745-
for results.eachi { |i, result|
2746-
let (_, _, did) = result;
2747-
let span = if did.crate == ast::local_crate {
2748-
alt check self.tcx().items.get(did.node) {
2749-
ast_map::node_method(m, _, _) { m.span }
2750-
}
2751-
} else {
2752-
self.expr.span
2753-
};
2754-
self.tcx().sess.span_note(
2755-
span,
2756-
#fmt["candidate #%u is %s",
2757-
(i+1u),
2758-
ty::item_path_str(self.tcx(), did)]);
2759-
}
27602741
}
27612742

27622743
let (self_substs, n_tps, did) = results[0];

branches/try/src/test/auxiliary/ambig_impl_2_lib.rs

Lines changed: 0 additions & 1 deletion
This file was deleted.

branches/try/src/test/compile-fail/ambig_impl_1.rs

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

branches/try/src/test/compile-fail/ambig_impl_2_exe.rs

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

branches/try/src/test/run-pass/ptr-is-null.rs

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

0 commit comments

Comments
 (0)