Skip to content

Commit f6c4a3a

Browse files
committed
---
yaml --- r: 93817 b: refs/heads/try c: 09af9d4 h: refs/heads/master i: 93815: 00f7bae v: v3
1 parent 85feebd commit f6c4a3a

21 files changed

+477
-657
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 0da105a8b7b6b1e0568e8ff20f6ff4b13cc7ecc2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
5-
refs/heads/try: fb279aa02a7ff2ed069791f60a5159d73c8ed993
5+
refs/heads/try: 09af9d48561380f8de3aa9a8b15b2b4e9af4daef
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/doc/tutorial.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,8 +1320,7 @@ let z = x; // this moves `x` into `z`, rather than creating a new owner
13201320

13211321
assert_eq!(*z.borrow(), [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);
13221322

1323-
// the variable is mutable, but not the contents of the box
1324-
let mut a = Rc::new([10, 9, 8, 7, 6, 5, 4, 3, 2, 1]);
1323+
let mut a = Rc::new([10, 9, 8, 7, 6, 5, 4, 3, 2, 1]); // the variable is mutable, but not the box
13251324
a = z;
13261325
~~~
13271326

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

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ use syntax::attr::AttrMetaMethods;
2323
use syntax::codemap::Span;
2424
use syntax::visit;
2525
use syntax::visit::Visitor;
26-
use syntax::parse::token;
2726

2827
use driver::session::Session;
2928

@@ -37,7 +36,6 @@ static KNOWN_FEATURES: &'static [(&'static str, Status)] = &[
3736
("once_fns", Active),
3837
("asm", Active),
3938
("managed_boxes", Active),
40-
("non_ascii_idents", Active),
4139

4240
// These are used to test this portion of the compiler, they don't actually
4341
// mean anything
@@ -78,15 +76,6 @@ impl Context {
7876
}
7977

8078
impl Visitor<()> for Context {
81-
fn visit_ident(&mut self, sp: Span, id: ast::Ident, _: ()) {
82-
let s = token::ident_to_str(&id);
83-
84-
if !s.is_ascii() {
85-
self.gate_feature("non_ascii_idents", sp,
86-
"non-ascii idents are not fully supported.");
87-
}
88-
}
89-
9079
fn visit_view_item(&mut self, i: &ast::view_item, _: ()) {
9180
match i.node {
9281
ast::view_item_use(ref paths) => {
@@ -152,9 +141,11 @@ impl Visitor<()> for Context {
152141
},
153142
ast::ty_box(_) => {
154143
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
157-
trait objects will be implemented but is currently missing.");
144+
"The managed box syntax will be replaced \
145+
by a library type, and a garbage \
146+
collector is not yet implemented. \
147+
Consider using the `std::rc::Rc` type \
148+
for reference counted pointers.");
158149
}
159150
_ => {}
160151
}

0 commit comments

Comments
 (0)