File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
5
5
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: c810ee8038f38190b45a011288103424d4ba7c8d
8
+ refs/heads/try2: fb4a1d88f580a138cae7530313b6d5a05c5ff5bd
9
9
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -107,6 +107,8 @@ impl MarkSymbolVisitor {
107
107
match item. node {
108
108
ast:: item_fn( ..)
109
109
| ast:: item_ty( ..)
110
+ | ast:: item_enum( ..)
111
+ | ast:: item_struct( ..)
110
112
| ast:: item_static( ..) => {
111
113
visit:: walk_item ( self , item, ( ) ) ;
112
114
}
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ static priv_static: int = 0; //~ ERROR: code is never used
27
27
static used_static: int = 0 ;
28
28
pub static used_static2: int = used_static;
29
29
static USED_STATIC : int = 0 ;
30
+ static STATIC_USED_IN_ENUM_DISCRIMINANT : uint = 10 ;
30
31
31
32
pub type typ = ~UsedStruct4 ;
32
33
pub struct PubStruct ( ) ;
@@ -41,8 +42,15 @@ struct SemiUsedStruct;
41
42
impl SemiUsedStruct {
42
43
fn la_la_la ( ) { }
43
44
}
45
+ struct StructUsedAsField ;
46
+ struct StructUsedInEnum ;
47
+ pub struct PubStruct2 {
48
+ struct_used_as_field : * StructUsedAsField
49
+ }
44
50
45
51
pub enum pub_enum { foo1, bar1 }
52
+ pub enum pub_enum2 { a( ~StructUsedInEnum ) }
53
+ pub enum pub_enum3 { Foo = STATIC_USED_IN_ENUM_DISCRIMINANT }
46
54
enum priv_enum { foo2, bar2 } //~ ERROR: code is never used
47
55
enum used_enum { foo3, bar3 }
48
56
You can’t perform that action at this time.
0 commit comments