Skip to content

Commit b5b1b2c

Browse files
committed
---
yaml --- r: 44434 b: refs/heads/master c: f9d789f h: refs/heads/master v: v3
1 parent 6f79c9d commit b5b1b2c

File tree

14 files changed

+246
-562
lines changed

14 files changed

+246
-562
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: 754718c91018ec1623425521f86f105360739444
2+
refs/heads/master: f9d789fa083220cc9d84cbea94868606600c64a9
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d9689399d091c3265f00434a69c551a61c28dc
55
refs/heads/try: ef355f6332f83371e4acf04fc4eb940ab41d78d3

trunk/doc/rust.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -202,13 +202,7 @@ grammar as double-quoted strings. Other tokens have exact rules given.
202202

203203
### Keywords
204204

205-
The keywords in [crate files](#crate-files) are the following strings:
206-
207-
~~~~~~~~ {.keyword}
208-
mod priv pub use
209-
~~~~~~~~
210-
211-
The keywords in [source files](#source-files) are the following strings:
205+
The keywords are the following strings:
212206

213207
~~~~~~~~ {.keyword}
214208
as assert

trunk/src/librustc/middle/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ struct ctxt_ {
262262
needs_drop_cache: HashMap<t, bool>,
263263
needs_unwind_cleanup_cache: HashMap<t, bool>,
264264
mut tc_cache: LinearMap<uint, TypeContents>,
265-
ast_ty_to_ty_cache: HashMap<@ast::Ty, ast_ty_to_ty_cache_entry>,
265+
ast_ty_to_ty_cache: HashMap<node_id, ast_ty_to_ty_cache_entry>,
266266
enum_var_cache: HashMap<def_id, @~[VariantInfo]>,
267267
trait_method_cache: HashMap<def_id, @~[method]>,
268268
ty_param_bounds: HashMap<ast::node_id, param_bounds>,

trunk/src/librustc/middle/typeck/astconv.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ pub fn ast_ty_to_ty<AC: AstConv, RS: region_scope Copy Durable>(
277277

278278
let tcx = self.tcx();
279279

280-
match tcx.ast_ty_to_ty_cache.find(&ast_ty) {
280+
match tcx.ast_ty_to_ty_cache.find(&ast_ty.id) {
281281
Some(ty::atttce_resolved(ty)) => return ty,
282282
Some(ty::atttce_unresolved) => {
283283
tcx.sess.span_fatal(ast_ty.span, ~"illegal recursive type; \
@@ -287,7 +287,7 @@ pub fn ast_ty_to_ty<AC: AstConv, RS: region_scope Copy Durable>(
287287
None => { /* go on */ }
288288
}
289289

290-
tcx.ast_ty_to_ty_cache.insert(ast_ty, ty::atttce_unresolved);
290+
tcx.ast_ty_to_ty_cache.insert(ast_ty.id, ty::atttce_unresolved);
291291
let typ = match /*bad*/copy ast_ty.node {
292292
ast::ty_nil => ty::mk_nil(tcx),
293293
ast::ty_bot => ty::mk_bot(tcx),
@@ -409,7 +409,7 @@ pub fn ast_ty_to_ty<AC: AstConv, RS: region_scope Copy Durable>(
409409
}
410410
};
411411

412-
tcx.ast_ty_to_ty_cache.insert(ast_ty, ty::atttce_resolved(typ));
412+
tcx.ast_ty_to_ty_cache.insert(ast_ty.id, ty::atttce_resolved(typ));
413413
return typ;
414414
}
415415

0 commit comments

Comments
 (0)