@@ -38,6 +38,7 @@ static KNOWN_FEATURES: &'static [(&'static str, Status)] = &[
38
38
( "asm" , Active ) ,
39
39
( "managed_boxes" , Active ) ,
40
40
( "non_ascii_idents" , Active ) ,
41
+ ( "thread_local" , Active ) ,
41
42
42
43
// These are used to test this portion of the compiler, they don't actually
43
44
// mean anything
@@ -107,6 +108,17 @@ impl Visitor<()> for Context {
107
108
}
108
109
109
110
fn visit_item ( & mut self , i : @ast:: item , _: ( ) ) {
111
+ // NOTE: uncomment after snapshot
112
+ /*
113
+ for attr in i.attrs.iter() {
114
+ if "thread_local" == attr.name() {
115
+ self.gate_feature("thread_local", i.span,
116
+ "`#[thread_local]` is an experimental feature, and does not \
117
+ currently handle destructors. There is no corresponding \
118
+ `#[task_local]` mapping to the task model");
119
+ }
120
+ }
121
+ */
110
122
match i. node {
111
123
ast:: item_enum( ref def, _) => {
112
124
for variant in def. variants . iter ( ) {
@@ -152,8 +164,8 @@ impl Visitor<()> for Context {
152
164
} ,
153
165
ast:: ty_box( _) => {
154
166
self . gate_feature ( "managed_boxes" , t. span ,
155
- "The managed box syntax is being replaced by the `std::gc::Gc`
156
- and `std::rc::Rc` types. Equivalent functionality to managed
167
+ "The managed box syntax is being replaced by the `std::gc::Gc` \
168
+ and `std::rc::Rc` types. Equivalent functionality to managed \
157
169
trait objects will be implemented but is currently missing.") ;
158
170
}
159
171
_ => { }
0 commit comments