Skip to content

Commit 7fa8e6d

Browse files
committed
---
yaml --- r: 90087 b: refs/heads/master c: a5af479 h: refs/heads/master i: 90085: ace5a03 90083: e9a8686 90079: 373c8e6 v: v3
1 parent aac28a5 commit 7fa8e6d

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 2cf3d8adf2cbdf760063a247162a558e68fe35fd
2+
refs/heads/master: a5af479bb479a2a4d3289f9feed9ac3ff299a395
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
55
refs/heads/try: b160761e35efcd1207112b3b782c06633cf441a8

trunk/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)