Skip to content

Commit ca05aaa

Browse files
committed
---
yaml --- r: 146874 b: refs/heads/try2 c: a5af479 h: refs/heads/master v: v3
1 parent f8a1839 commit ca05aaa

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 2cf3d8adf2cbdf760063a247162a558e68fe35fd
8+
refs/heads/try2: a5af479bb479a2a4d3289f9feed9ac3ff299a395
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/librustc/front/feature_gate.rs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ static KNOWN_FEATURES: &'static [(&'static str, Status)] = &[
3838
("asm", Active),
3939
("managed_boxes", Active),
4040
("non_ascii_idents", Active),
41+
("thread_local", Active),
4142

4243
// These are used to test this portion of the compiler, they don't actually
4344
// mean anything
@@ -107,6 +108,17 @@ impl Visitor<()> for Context {
107108
}
108109

109110
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+
*/
110122
match i.node {
111123
ast::item_enum(ref def, _) => {
112124
for variant in def.variants.iter() {
@@ -152,8 +164,8 @@ impl Visitor<()> for Context {
152164
},
153165
ast::ty_box(_) => {
154166
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 \
157169
trait objects will be implemented but is currently missing.");
158170
}
159171
_ => {}

0 commit comments

Comments
 (0)